hi everybody
im trying to write a macro for the user to open pps file and them click a button and by clicking that button it will run a macro to open another .pps file.
I use a standard function which will open ANY document that has a default app registered.
Code:
Public Function OpenDocument(DocumentWithPath As String) As Long
OpenDocument = Shell("RUNDLL32.EXE URL.DLL,FileProtocolHandler " & DocumentWithPath, vbNormalFocus)
End Function
In your macro you can then use
Code:
x = OpenDocument("c:\mydoc.ppt")
Good Luck
johnwm
________________________________________________________
To get the best from these forums read faq731-376 before posting