Be the first user to complete this post

  • 0
Add to List

VBA-Excel: Open an Existing Word Document

To open an existing Microsoft Word Document using Microsoft Excel, you need to follow the steps below:

  • Create the object of Microsoft Word
  • Using MS word object, Open the existing word document by providing the complete path
  • Make the MS Word visible

Create the object of Microsoft Word

Set objWord = CreateObject(“Word.Application”)

Using MS word object, Open the existing word document by providing the complete path

Set objDoc = objWord.Documents.Open("D:\OpenMe.docx")

Make the MS Word Visible

objWord.Visible = True

Complete Code:

Function FnOpeneWordDoc()

   Dim objWord

   Dim objDoc

   Set objWord = CreateObject("Word.Application")

   Set objDoc = objWord.Documents.Open("D:\OpenMe.docx")

   objWord.Visible = True

End Function



Also Read:

  1. Excel-VBA : Send a Excel Workbook as Attachment in Mail From MS Outlook Using Excel
  2. VBA-Excel: Working with Bookmarks- Insert text After Bookmark
  3. VBA-Excel: Add/Insert a Image/Picture in Word Document
  4. VBA-Excel: Open word document using GetObject()
  5. Excel-VBA : Send Unique Images Embedded to Mail Body, With Every Mail From MS Outlook using Excel.
  6. Excel-VBA : Send Mail with Embedded Image in message body From MS Outlook using Excel.
  7. VBA-Excel: Read XML by Looping through Nodes
  8. VBA-Excel: Format already written text in a word document – Format Paragraphs