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
<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