In VBA I am trying to make powerpoint find a text file. I want powerpoint to
look for the text file in the same folder as the ppt.
Eg:
I have at the moment -
C:\Documents and Settings\User\My Documents\New Folder\text.txt
That wont work on computers that are not called User
Instead I just want it to look for the text file in the same folder that it
is in.
What directory do I type to make that happen?
Chirag - 26 Mar 2008 02:41 GMT
ActivePresentation.Path will give you the full path to the folder of the
active ppt. You can construct the path to text.txt file as follows:
ActivePresentation.Path + "\text.txt"
- Chirag
PowerShow - View multiple PowerPoint slide shows simultaneously
http://officeone.mvps.org/powershow/powershow.html
> In VBA I am trying to make powerpoint find a text file. I want powerpoint
> to
[quoted text clipped - 13 lines]
>
> What directory do I type to make that happen?
Shyam Pillai - 26 Mar 2008 02:41 GMT
ActivePresentation.Path will give you the path to the active presentation.
If the presentation has never been saved then the path will be blank.

Signature
Regards,
Shyam Pillai
Animation Carbon: Copy/Paste/Share animation libraries.
www.animationcarbon.com
> In VBA I am trying to make powerpoint find a text file. I want powerpoint
> to
[quoted text clipped - 13 lines]
>
> What directory do I type to make that happen?