Link to home
Start Free TrialLog in
Avatar of Jamie Garroch (MVP)
Jamie Garroch (MVP)Flag for United Kingdom of Great Britain and Northern Ireland

asked on

Get the template name associated with a PowerPoint presentation

I'm using the PowerPoint 2013 UI in my example below but the same question applies to other versions.

If I create a new presentation from a given template and then click File and over on the right column, click the Properties drop down to then click Advanced, I can see the Template name in the Summary tab which appears to the the filename of the POTX file the presentation was created from (minus the extension).

I want to extract this name in VBA but when I use:

Presentation.TemplateName

Open in new window


...I get different text which equates to the design name and not the template name as returned by this property:

Presentation.SlideMaster.Design.Name

Open in new window


e.g. both lines above return the same text but not the name of the POTX template!

How do I get the name of the original template as displayed in PowerPoint's Properties dialog box?
ASKER CERTIFIED SOLUTION
Avatar of Jamie Garroch (MVP)
Jamie Garroch (MVP)
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial