Jamie Garroch (MVP)
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:
...I get different text which equates to the design name and not the template name as returned by this property:
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?
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
...I get different text which equates to the design name and not the template name as returned by this property:
Presentation.SlideMaster.Design.Name
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.