File Directory Question

D

Desmond777

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

Shyam Pillai

ActivePresentation.Path will give you the path to the active presentation.
If the presentation has never been saved then the path will be blank.

--
Regards,
Shyam Pillai

Animation Carbon: Copy/Paste/Share animation libraries.
www.animationcarbon.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top