Using a Command Button to open Power Point

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
 
C

Cheryl Fischer

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)
 
M

Mike

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"
 

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