ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Launch Word for Excel (https://www.excelbanter.com/excel-programming/284330-launch-word-excel.html)

Ron C[_2_]

Launch Word for Excel
 
Does anyone have a recommendation on how to open and view
a Word file from with Excel (VBA)?

Chip Pearson

Launch Word for Excel
 
Ron,

Try something like the following:

Dim WordApp As Object
Set WordApp = CreateObject("Word.Application")
WordApp.documents.Open "C:\filename.doc"
WordApp.Visible = True


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Ron C" wrote in message
...
Does anyone have a recommendation on how to open and view
a Word file from with Excel (VBA)?




Ron C[_2_]

Launch Word for Excel
 
Chip,
It Worked.....Many, many thanks.

RonC.



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


All times are GMT +1. The time now is 05:55 PM.

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