Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open Powerpoint show with command button

Status
Not open for further replies.

JMal

Programmer
Aug 19, 2004
61
IE
Hi,

I am using the following code to "TRY" to open a powerpoint application form a command button in my form.

----------------------------------------------------------
Dim x As Variant

x = Shell("Explorer.exe /n,/e,C:\Program Files\Folder20\Powerpoint Shows\47.pps", vbMaximizedFocus)
----------------------------------------------------------

When I run the above code the powerpoint show opens in windows explorer. Can anyone tell me how to change the above code to get my powerpoint show to open full screen without the "Windows Explorer" part.

Im not too hot with VBA.

JJ
 
Replace "explorer.exe" with the filepath to powerpoint.exe

I think you'll also need to remove the two command line switches "/n" and "/e".

I don;t have Powerpoint installed on this PC, so I am unable to test this but it should work.

Ed Metcalfe.

Please do not feed the trolls.....
 
Look up FollowHyperlink in help. I prefer it over Shell.


Randy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top