Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
MATT
 
Posts: n/a
Default Open Word Doc From Excel Macro

I have an Excel Sheet that contains Macros. At the end of one of the Macros,
I would like it to open a Word Document. Something like Document.open
FileName:="C:\Path\name.doc", except it needs to run from the Excel sheet.
Is there a way to do this?
  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

One way

http://support.microsoft.com/kb/q177760/


Regards,

Peo Sjoblom

"MATT" wrote:

I have an Excel Sheet that contains Macros. At the end of one of the Macros,
I would like it to open a Word Document. Something like Document.open
FileName:="C:\Path\name.doc", except it needs to run from the Excel sheet.
Is there a way to do this?

  #3   Report Post  
Chuck Davis
 
Posts: n/a
Default


-----Original Message-----
One way

http://support.microsoft.com/kb/q177760/


Regards,

Peo Sjoblom

"MATT" wrote:

I have an Excel Sheet that contains Macros. At the end

of one of the Macros,
I would like it to open a Word Document. Something like

Document.open
FileName:="C:\Path\name.doc", except it needs to run

from the Excel sheet.
Is there a way to do this?

.

Note that the link provided by Peo is applicable to Office 97.
  #4   Report Post  
Dave Peterson
 
Posts: n/a
Default

It looks like it should run in any version of excel/word, though.



Chuck Davis wrote:

-----Original Message-----
One way

http://support.microsoft.com/kb/q177760/


Regards,

Peo Sjoblom

"MATT" wrote:

I have an Excel Sheet that contains Macros. At the end

of one of the Macros,
I would like it to open a Word Document. Something like

Document.open
FileName:="C:\Path\name.doc", except it needs to run

from the Excel sheet.
Is there a way to do this?

.

Note that the link provided by Peo is applicable to Office 97.


--

Dave Peterson
  #5   Report Post  
Dave Peterson
 
Posts: n/a
Default

If you're not trying to control word from excel, you could just start your
document:

Shell "Start ""c:\path\name.doc"""

(just add that line into your code.)

You could even use a hyperlink (placed on the worksheet or started in code):

ActiveWorkbook.FollowHyperlink Address:="c:\path\name.doc"



MATT wrote:

I have an Excel Sheet that contains Macros. At the end of one of the Macros,
I would like it to open a Word Document. Something like Document.open
FileName:="C:\Path\name.doc", except it needs to run from the Excel sheet.
Is there a way to do this?


--

Dave Peterson


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
How do I get my personal macro worksheet to open whenever I open . Claudia_R Excel Discussion (Misc queries) 3 December 9th 04 11:59 PM
Paste rows of numbers from Word into single Excel cell BecG Excel Discussion (Misc queries) 1 December 8th 04 04:55 PM
Cannot open a file that Excel says is open Plodhia Excel Discussion (Misc queries) 2 December 7th 04 01:43 AM
Copying an Excel spreadsheet to a Word document KG Excel Discussion (Misc queries) 1 November 28th 04 07:38 PM
Open a file in excel from a link in eplorer Dave Peterson Excel Discussion (Misc queries) 0 November 26th 04 01:25 AM


All times are GMT +1. The time now is 05:24 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"