Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General PowerPoint Questions / March 2008

Tip: Looking for answers? Try searching our database.

File Directory Question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Desmond777 - 26 Mar 2008 00:07 GMT
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?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.