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: Working with Bookmarks- Insert text After Bookmark
- VBA-Excel: Add Worksheets For All The Given Dates Except Weekends and Copy The Common Template In Each Worksheet
- Excel-VBA : Open a MS Word Document using Excel File using Explorer Window.
- VBA-Excel: Find a word in a specific paragraph and change its formatting
- VBA-Excel: Format the Existing Table in a Word document