ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Open Word Doc From Excel Macro (https://www.excelbanter.com/excel-discussion-misc-queries/1787-open-word-doc-excel-macro.html)

MATT

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?

Peo Sjoblom

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?


Chuck Davis


-----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

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

Dave Peterson

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


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com