Opening Powerpoint File not working..

  • Thread starter Thread starter jokobe
  • Start date Start date
J

jokobe

I opened a Word file with this command:
strDocName = strDirName & "\" & file_location
Set WordDoc = WordApp.Documents.Open(strDocName)
Now I'm trying to do the same with Powerpoint:

Set PowerpointDoc = PowerpointApp.Presentations.Open(strDocName)
(of course it is a powerpoint file in this case)

any helpful hints?

jokobe
 
If you wish to open a file, any file type, use the FollowHyperlink Method.
It will open the file in question using whichever program that file is
associated with. So for ppt, pps,... it will open using PowerPoint.

Application.FollowHyperlink "FullPath\FileName.ext"

Look it up in the help file for more information if required.
--
Hope this helps,

Daniel Pineault
http://www.cardaconsultants.com/
For Access Tips and Examples: http://www.devhut.net
Please rate this post using the vote buttons if it was helpful.
 

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

Back
Top