Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PowerPoint, reading template path

Status
Not open for further replies.

eman6

Programmer
Dec 7, 2004
578
CH
The following code I have works in Word but not in PowerPoint:

<code>
Dim myTempl As Template
Set myTempl = ActiveDocument.AttachedTemplate
myWhere = myTempl.Path & "\"
</code>

It stops at the first line and says "User define type not defined." Although in the references I have the powerpoint object library.
It accepts it after I add the Word object library (I'm talking version 9 by the way, which is 2000).
However, there is no such thing as ActivePresentation.AttachedTemplate
So, my question is: Is there a way I can read the path of the template of a presentation, or is PowerPoint not following the same philosophy that Word follows, each document being based on a template and is affected by template changes??

______________________________________
Eman2005
Technical User
 
There is no Template object in the PowerPoint Object Model.
However you may get the template name:
ActivePresentation.TemplateName

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top