Loosing Bookmark when updating

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have declared a book mark , in square brackets, and then using VB I replace
the text that is in the bookmark. On returning to the document on completion
of the macro the bookmarks have disappeared. I have checked the bookmark
dropdown menu and confirmed that the bookmark has in fact disappeared.

Can anyone shed any light on why this has happened and how I can fix the
problem.
 
Dazza said:
I have declared a book mark , in square brackets, and then using VB I
replace the text that is in the bookmark. On returning to the
document on completion of the macro the bookmarks have disappeared. I
have checked the bookmark dropdown menu and confirmed that the
bookmark has in fact disappeared.

Can anyone shed any light on why this has happened and how I can fix
the problem.

See http://word.mvps.org/FAQs/MacrosVBA/InsertingTextAtBookmark.htm.
 
You have overwritten the bookmark. This is not uncommon. I believe the code
suggested at http://word.mvps.org/FAQs/Userforms/CreateAUserForm.htm inserts
text in such a way as not to overwrite the bookmark, but since I'm not
VBA-literate, I can't swear to that.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
Ah, thanks for that one, Jay.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
Back
Top