>I need to change the label associated with a bookmark.
>
>Currently, the only way I have found to do this is to get the location of
>the first one (start and length), delete it, and select the block that was
>bookmarked and create a new bookmark with the new name.
>
>Is there a direct way to access the bookmark label?
Bookmarks are text objects, similar to the TextFields (page number etc
- not mailmerge fields!) - they can be read out and changed in the
list WPRichText1.Memo.TxtObjLst
Using the commads:
Code
WPRichText1.Memo.TxtObjLst.Find_CNameList(Name, wpcoBookMark, nil);
WPRichText1.Memo.TxtObjList.Names[
WPRichText1.Memo.TxtObjLst.CurrentTag] := 'new name';
you can change it.