Be the first user to complete this post

  • 0
Add to List

VBA-Excel: Create a new Word Document

For creating a new Microsoft Word Document using Microsoft Excel, you need to follow the steps below:

  • Create the object of Microsoft Word
  • Add documents to the Word
  • Make the MS Word visible

Create the object of Microsoft Word

Set objWord = CreateObject(“Word.Application”)

Add documents to the Word

Set objDoc = objWord.Documents.Add

Make the MS Word Visible

objWord.Visible = True

Complete Code:

Function FnCreateWordDoc()

   Dim objWord

   Dim objDoc

   Set objWord = CreateObject("Word.Application")

   Set objDoc = objWord.Documents.Add    

   objWord.Visible = True

End Function

Also Read:

  1. VBA-Excel: Create and Save the Word document
  2. VBA-Excel: Working with Microsoft Word
  3. VBA-Excel: Format already written text in a word document – Format Paragraphs
  4. VBA-Excel - Merger - Merge or Combine Many Word Documents Into One
  5. VBA-Excel: Add Table and fill data to the Word document
  6. VBA-Excel: Appending Text to an Existing Word Document - at the End
  7. VBA-Excel: Open and Print the Word Document
  8. VBA-Excel: Open word document using GetObject()