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 *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>