Results 1 to 2 of 2
  1. #1
    2 Star Lounger
    Join Date
    Mar 2001
    Location
    Oregon, USA
    Posts
    129
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Bookmarks delete when editing text (O2k, SR1)

    This should be so easy. I'll probably respond with a <img src=/S/doh.gif border=0 alt=doh width=15 height=15> once someone points me in the proper direction. All I want to do is change the text of some bookmarks. When I do, Word makes the change for me but then deletes the bookmark.

    <pre>oBkMark.Range.Text = oBkMark.Name & " " & Chr(151) & " " & strText</pre>


    Any ideas?

    Thanks,

    Chris

  2. #2
    2 Star Lounger
    Join Date
    Mar 2001
    Location
    Oregon, USA
    Posts
    129
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Bookmarks delete when editing text (O2k, SR1)

    Got it solved using code posted by Dave Rado on the Microsoft groups. Looks like you got to live with the delete. His option stepped backwards through the bookmarks, set a range to the range of the bookmark, set the text, and then used the range to re-create the bookmark.

    Chris

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •