Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Bex Bex is offline
external usenet poster
 
Posts: 8
Default Using a macro to open another document

I want to have a button in Excel which you click on and it takes you into
word to a specific document in word.

Is this possible?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Using a macro to open another document

The macro:

Sub Macro1()
Dim s As String
s = "cmd.exe /c C:\Hello.doc"
x = Shell(s, 1)
End Sub


will take you to a word doc. Just assign a Forms button to the macro.
--
Gary''s Student - gsnu200737


"Bex" wrote:

I want to have a button in Excel which you click on and it takes you into
word to a specific document in word.

Is this possible?

Thanks

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
Using a macro to open another document CLR Excel Discussion (Misc queries) 0 August 17th 07 01:48 AM
Macro to open specific document Thew21 Excel Discussion (Misc queries) 1 December 13th 06 01:18 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
why must I open an Excel document twice to get it to open after . NottaBoy Excel Discussion (Misc queries) 1 May 17th 05 09:22 AM
When I open excel document it always ask if I want to open it in . dperkins Excel Discussion (Misc queries) 0 February 15th 05 08:11 PM


All times are GMT +1. The time now is 06:29 PM.

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"