Running PowerPoint from Access

G

Guest

I am writing a DB program that show or edit a PP file from access. So, I'm
calling PowerPoint and passing the argument of a PPT/PPS file I want PP to
show, as shown:

Dim stAppName As String
Dim File_Path As String
File_Path = Me!DirPath.Value
stAppName = "C:\Program Files\Microsoft Office\Office11\PowerPnt.exe " &
File_Path
Call Shell(stAppName, vbNormalFocus)

End Sub

This works fine when I'm trying to edit the PPT/PPS file.
Is there a parameter to pass to PP to open the file in SHOW mode
automatically, whitout using PPTView?
Or passing a parameter to PP to open the PPT/PPS file in the second monitor?
 
D

Douglas J Steele

Try using:

stAppName = "C:\Program Files\Microsoft Office\Office11\PowerPnt.exe " &
"/s " & File_Path


--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)


Gus said:
I am writing a DB program that show or edit a PP file from access. So, I'm
calling PowerPoint and passing the argument of a PPT/PPS file I want PP to
show, as shown:

Dim stAppName As String
Dim File_Path As String
File_Path = Me!DirPath.Value
stAppName = "C:\Program Files\Microsoft Office\Office11\PowerPnt.exe " &
File_Path
Call Shell(stAppName, vbNormalFocus)

End Sub

This works fine when I'm trying to edit the PPT/PPS file.
Is there a parameter to pass to PP to open the file in SHOW mode
automatically, whitout using PPTView?
Or passing a parameter to PP to open the PPT/PPS file in the second
monitor?
 
G

Guest

Nice,
Is there another parameter to open in the second monitor with opion to edit
in the first monitor (like kiosko or presenter viewer) ?
 

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

Top