Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Macro to open specific document

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
  #2   Report Post  
Posted to microsoft.public.excel.misc
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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel won't open the original document!!! HannaBlack Excel Discussion (Misc queries) 5 July 19th 06 12:31 PM
Closing File Error jcliquidtension Excel Discussion (Misc queries) 4 October 20th 05 12:22 PM
Unable to open excel document across a network. John Excel Discussion (Misc queries) 1 September 30th 05 09:12 PM
my excel document won't open unless i go file, then open EB500 Excel Discussion (Misc queries) 1 June 3rd 05 06:42 PM
Macro to open specific File tamato43 Excel Discussion (Misc queries) 4 May 18th 05 09:42 PM


All times are GMT +1. The time now is 08:01 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"