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.
 
Back
Top