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
- Click on Insert, and then Module
- This will create new module.
- Enter the following code in the Module
Set wrdApp = CreateObject(“Word.Application”)
Set wrdDoc = wrdApp.Documents.Open(“C:wordtest.doc”)
In this way we can use VBA to open Word file in Excel.