View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Gary''s Student Gary''s Student is offline
external usenet poster
 
Posts: 11,058
Default Macro to open specific document

Try something like:

Sub Macro4()
x = Shell("cmd.exe /c C:\sample.ppt", 1)
End Sub


--
Gary's Student


"Thew21" wrote:

Hi, Im trying to use a macro in excel to open up a powerpoint document.
However when i try it just says document not found. I am using the Shell
command and it works if I just try to open Access and work. But if i try to
open any other specific document it just says not found.

Thanks

Richard