Show Buttons
Share On Facebook
Share On Twitter
Share On Google Plus
Share On Linkdin
Share On Reddit
Contact us
Hide Buttons

VBA-Excel: Open an Existing Word Document

To open an exist­ing Microsoft Word Doc­u­ment using Microsoft Excel, you need to fol­low the steps below:

  • Cre­ate the object of Microsoft Word
  • Using MS word object, Open the exist­ing word doc­u­ment by pro­vid­ing the com­plete path
  • Make the MS Word visible

 

Cre­ate the object of Microsoft Word

Set obj­Word = CreateObject(“Word.Application”)

Using MS word object, Open the exist­ing word doc­u­ment by pro­vid­ing the com­plete path

Set obj­Doc = objWord.Documents.Open(“D:\OpenMe.docx”)

Make the MS Word Visible

objWord.Visible = True

Com­plete 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

 

 

You may also like...

6 Responses

  1. ashwini says:

    Sumit

    Its won­der­ful to see the excel post from you as it is impor­tant to learn this excel func­tions as this can be used in our practises..

    kudos !!!!

  2. John says:

    Sim­ple — but what if you don’t want to open the same file every time? Hard cod­ing the file name gets rather awk­ward. How do you open the Explorer win­dow to select a Word document?

  3. Yogesh Dhage says:

    Hi
    I want to open a word doc­u­ment through macros and wants to for­mat opened doc­u­ment using sin­gle click.

  1. September 17, 2015

    […] Yep, Google is your friend. https://social.msdn.microsoft.com/Fo…e?forum=isvvba VBA-Excel: Open an Exist­ing Word Doc­u­ment Cre­at­ing a Word Doc­u­ment with Excel VBA VBA-Excel: Cre­ate and Save the Word doc­u­ment to name but a […]

Leave a Reply

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

%d bloggers like this: