chipbk10
chipbk10

Reputation: 5955

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.

Upvotes: 1

Views: 139

Answers (2)

Steve Rindsberg
Steve Rindsberg

Reputation: 14809

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.

Upvotes: 3

JKennedy
JKennedy

Reputation: 18827

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

Upvotes: 1

Related Questions