Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Modify Bookmark Text in a Word DocumentContent of Modify Bookmark Text in a Word Document.vbsMD5 Hash: C92AD62AD8E45BEC372493F45A745190 |
||
' Description: Demonstration script that changes the text of two different bookmarks in an existing Microsoft Word document.
Set objWord = CreateObject("Word.Application") objWord.Caption = "Test Caption" objWord.Visible = True Set objDoc = objWord.Documents.Open("c:\scripts\word\bookmarkdoc.doc") Set objRange = objDoc.Bookmarks("NameBookmark").Range objRange.Text = "Bob" Set objRange = objDoc.Bookmarks("AddressBookmark").Range objRange.Text = "999" | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |