Be the first user to complete this post
|
Add to List |
VBA-Excel: Working with Microsoft Word
You can do wonders with Microsoft Word using your excel, like creating a new word file, open an existing word file, saving it to specific location in your hard drive, print the word document, Add tables to your word document and many more.
Since its and external application, to deal with it first step would be get the instance of the word file or you can say create the Object of the word file using CreateObject Function.
Set objWord = CreateObject("Word.Application")
And that’s it Now you are all set to perform various operations.
In next few sessions you will see the following operations on Word using Excel.
- Create a new Word Document
- Open an Existing Word Document
- Writing Text in Word Document
- Create and save the word document
- Edit and Save an existing word document
- Appending Text to Word Document at Beginning
- Appending Text to an Existing Word Document - at the End
- Add/Insert a Image/Picture in Word Document
- Add/Insert multiple Images/Pictures from a folder in Word Document
- Open and Print the Word Document
- Format already written text in a word document – Format Paragraphs
- Format already written text in a word document – Format All Content
- Find a word in a specific paragraph and change its formatting
- Working with Bookmarks– Insert text After Bookmark
- Working with Bookmarks– Insert text Before Bookmark
- Get the Instance of already opened word document
- Enumerate all the opened word document
- Add Table and fill data to the Word document
- Format the Existing Table in a Word document
Happy Macroing
Sumit Jain
Also Read:
- VBA-Excel: Get the Instance of already opened word document
- VBA-Excel — AttachmentFetcher — Download all the Attachments from All the Mails of Specific Subject in Microsoft Outlook .
- VBA-Excel - Merger - Merge or Combine Many Word Documents Into One
- VBA-Excel: Working with Bookmarks- Insert text After Bookmark
- VBA-Excel: Read Data from XML File