Overtyping with bookmarks

W

wdd911

I have a word template with bookmarks that I am inserting data into using VB. The problem is that the text following the bookmark on the line gets pushed over. Is there any way to have a bookmark insert text in overtype mode? I tried setting overtype mode for the application object
objWordApp.Options.Overtype = Tru
but that didn't work. I know I can set up tables to get around this, but overtyping would be much easier if it is possible.
 
C

Charles Kenyon

Much better would be to enclose the text to be eliminated in the bookmark.
Select the bookmark and delete the text. Insert the new text in a recreated
bookmark. This method is described in the vba FAQ on the MVP FAQ site.


wdd911 said:
I have a word template with bookmarks that I am inserting data into using
VB. The problem is that the text following the bookmark on the line gets
pushed over. Is there any way to have a bookmark insert text in overtype
mode? I tried setting overtype mode for the application object
objWordApp.Options.Overtype = True
but that didn't work. I know I can set up tables to get around this, but
overtyping would be much easier if it is possible.
 
Top