简体   繁体   中英

How to identify a presentation in PowerPoint?

Normally, to identify a shape in a slide, we use PowerPoint.Shape.Id

to identify a slide in a presentation, we use PowerPoint.Slide.SlideId

but I don't know how to identify a presentation in a PowerPoint application. Assume that we have a collection of presentation being opened, how can we identify a presentation in that collection?

Thanks.

The Application object has a Presentations collection. The Presentation objects in that collection have a .FullName property which includes the full path to the presentation, assuming it's been saved.

That would uniquely identify the presentation on a given system.

Try use the Application.ActiveWindow Property. I think this is probably what you are looking for? I think the question needs to be more specific in what identifies which presentation you would like to return but this will put you on the right track.

More info here: http://msdn.microsoft.com/en-us/library/office/ff745295(v=office.15).aspx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM