Group:  Microsoft Access ยป microsoft.public.access.formscoding
Thread: Opening Powerpoint File not working..

Geek News

Opening Powerpoint File not working..
jokobe 12/5/2008 12:43:01 PM
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
RE: Opening Powerpoint File not working..
MikeJohnB 12/5/2008 1:24:04 PM
Take a look at the site below for code to run powerpoint from Access

http://msdn.microsoft.com/en-us/library/aa159920(office.11).aspx

I hope this helps? Does it answer your question, please post again if not

Kindest regards
--
Advice to Posters.
Check your post for replies or request for more information.
Consider providing some feed back to the response you have recieved.
Kindest Regards Mike B


"jokobe" wrote:

[Quoted Text]
> 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
RE: Opening Powerpoint File not working..
Daniel Pineault 12/5/2008 7:28:11 PM
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.



"jokobe" wrote:

[Quoted Text]
> 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

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net