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?
Microsoft PowerPointVisual Basic ClassicVBA

Avatar of undefined
Last Comment
Jamie Garroch (MVP)

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Jamie Garroch (MVP)

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Your help has saved me hundreds of hours of internet surfing.
fblack61