Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Prohock
 
Posts: n/a
Default help creating a macro in excel that opens a specific word document

I would like to create a macro in excel that loads a specific word document
in MSword! Any Ideas?
  #2   Report Post  
Posted to microsoft.public.excel.misc
Gary''s Student
 
Posts: n/a
Default help creating a macro in excel that opens a specific word document

Try:

Sub Macro1()
x = Shell("cmd.exe /c C:\Userguide.doc", 1)
End Sub
--
Gary's Student


"Prohock" wrote:

I would like to create a macro in excel that loads a specific word document
in MSword! Any Ideas?

  #3   Report Post  
Posted to microsoft.public.excel.misc
Prohock
 
Posts: n/a
Default help creating a macro in excel that opens a specific word docu

Hi Gary, Sorry I am very new to this. How do I set the "x" variable so that
this can work?

"Gary''s Student" wrote:

Try:

Sub Macro1()
x = Shell("cmd.exe /c C:\Userguide.doc", 1)
End Sub
--
Gary's Student


"Prohock" wrote:

I would like to create a macro in excel that loads a specific word document
in MSword! Any Ideas?

  #4   Report Post  
Posted to microsoft.public.excel.misc
Gary''s Student
 
Posts: n/a
Default help creating a macro in excel that opens a specific word docu

The code will set it.
--
Gary''s Student


"Prohock" wrote:

Hi Gary, Sorry I am very new to this. How do I set the "x" variable so that
this can work?

"Gary''s Student" wrote:

Try:

Sub Macro1()
x = Shell("cmd.exe /c C:\Userguide.doc", 1)
End Sub
--
Gary's Student


"Prohock" wrote:

I would like to create a macro in excel that loads a specific word document
in MSword! Any Ideas?

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
2 questions: Using solver in Macro AND converting to Word document to print A3 yendor28 Excel Discussion (Misc queries) 3 November 17th 05 07:55 PM
How do I import an excel spreadsheet to a word document Amuse Excel Discussion (Misc queries) 0 July 10th 05 10:30 PM
Excel macro that opens new MS Word file and pastes data as a pictu Rob Excel Worksheet Functions 0 July 6th 05 05:12 PM
Excel startup switches Randy Excel Discussion (Misc queries) 9 June 14th 05 10:27 PM
Word document embedded in Excel 2003 won't wrap brandxdesign&construction Excel Discussion (Misc queries) 0 May 18th 05 05:53 PM


All times are GMT +1. The time now is 11:33 PM.

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

About Us

"It's about Microsoft Excel"