Using a Command Button to open Power Point

  • Thread starter Thread starter Ramone
  • Start date Start date
R

Ramone

I would like help with the following:

I would like to included a command button on a form that
will open a power point presentation.


Thank you for considering my problem

Ramone
 
Have you tried using the Command Button Wizard? In design view of your
form, drag a command button onto the form. In the first popup window, the
wizard will ask what you want the command button to do. Select
"Application" in the left-hand list box and select "Run Application" in the
right-hand listbox. A window will then open which will allow you to browse
for the Powerpnt.exe file. Select the file and complete the rest of the
prompts, and you will have a command button containing the following code
(which works for Access 2002/PowerPoint 2002).


Dim stAppName As String

stAppName = "C:\Program Files\Microsoft Office\Office10\POWERPNT.EXE"
Call Shell(stAppName, 1)
 
You can also try building a macro using the "runapp" mode.
Your command line would look like this:

"C:\PROGRAM FILES\MICROSOFT OFFICE\POWERPNT.EXE" "YOUR
FILE NAME AND LOCATION HERE.PPT"
 
Back
Top