How to write VBA to call a PPS file?

cheer

Registered User.
Local time
Tomorrow, 00:40
Joined
Oct 30, 2009
Messages
222
Anyone familiar to writeVBA to call a PPS file?
 
Have you tried using the shell() command? Windows will find Power Point for you.
 
Application.FollowHyperlink() should work also.
 
Have you tried using the shell() command? Windows will find Power Point for you.

I got the answer. TQ

On Error GoTo errHandler
Shell "RunDLL32.EXE shell32.dll,ShellExec_RunDLL \\xxxx\yyyy\abc.pps"
Exit Sub
errHandler:
ErrMessage Err.Description
 
I would think you could have just said:
Shell "\\xxxx\yyyy\abc.pps"
...and it would have worked.
 
I would think you could have just said:
Shell "\\xxxx\yyyy\abc.pps"
...and it would have worked.

I try this, it doesn't work. I think it should come together with another method call AppActivate. Correct me if I'm wrong.
 
On Error GoTo errHandler
Shell "RunDLL32.EXE shell32.dll,ShellExec_RunDLL \\xxxx\yyyy\abc.pps"
Exit Sub
errHandler:
ErrMessage Err.Description

Earlier I hv mentioned above code, any idea how to open a PDF file in a MAXIMIZE mode by using same way ?
 
Look into the Windows API ShellExecute. Here is a kb article on it. You would be interested in the last parameter MS calls FsShowCmd.
 

Users who are viewing this thread

Back
Top Bottom