Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms Programming / July 2007

Tip: Looking for answers? Try searching our database.

Trying to open a powerpoint presentation

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jokobe - 15 Jul 2007 12:58 GMT
I'm trying to open an powerpoint presentation with this code:
     Set PowerpointApp = GetObject("& strDocName &")
       pr.SlideShowSettings.Run
the strdocname holds the filename and the value is set a few lines before.
But the PowerpointApp is always "nothing" and no file is opening.

Any helpful hint?

jokobe
Douglas J. Steele - 15 Jul 2007 13:17 GMT
Try:

Set PowerpointApp = GetObject("""" & strDocName & """")

or

Set PowerpointApp = GetObject(Chr$(34) & strDocName & Chr$(34))

What you've got is telling Access to open a presentation named, literally,
"& strDocName &", which isn't what you want.

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)

> I'm trying to open an powerpoint presentation with this code:
>      Set PowerpointApp = GetObject("& strDocName &")
[quoted text clipped - 5 lines]
>
> jokobe
 
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.