How to Launch Word File Using VBA in Microsoft Excel

The number of people using Word & Excel are quite high, however, they are not well versed when it comes to opening word file from Excel workbook. This article shows the way to open word application from Excel.

 

We need to follow the below steps to launch VB editor

  • Click on Developer tab
  • From Code group, select Visual Basic

image 1

 

  • Click on Insert, and then Module

image 2

 

  • This will create new module.
  • Enter the following code in the Module

Sub WordFromExcel()

Set wrdApp = CreateObject("Word.Application")

Set wrdDoc = wrdApp.Documents.Open("C:wordtest.doc")

End Sub

 image 3

 

In this way we can use VBA to open Word file in Excel.

 

download

 

Excel

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *

Terms and Conditions of use

The applications/code on this site are distributed as is and without warranties or liability. In no event shall the owner of the copyrights, or the authors of the applications/code be liable for any loss of profit, any problems or any damage resulting from the use or evaluation of the applications/code.