For inserting the text before the Bookmark in an existing Microsoft Word Document using Microsoft Excel, you need to follow the steps below:
Add a Bookmark “IMBOOKMARK” with name “bookmark_1”
- Create the object of Microsoft Word
- Create Doc object using MS word object, Open the existing word document by providing the complete path
- Make the MS Word visible
- Get the range object for the bookmark
- Insert the text before the bookmark
- Save the word document
- Close the word document