-
How to overtype text at a bookmark in Word?
Hi,
I would like to insert some text in a Word document, at a bookmark, but have the text overwrite what is already there. I am using the following code snippet:
Set objWord = CreateObject("Word.Application")
objWord.ActiveDocument.Bookmarks("BookmarkName").Select
objWord.Options.Overtype = True
objWord.Selection.Text = "Some text"
The line “objWord.Options.Overtype = True” doesn’t appear to do anything… the text just gets inserted at the bookmark. Can anybody please suggest a solution? I searched the web and toyed in VBA but can’t see where to go from here.
Thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules