MWE
09-01-2008, 01:57 PM
I am running Word2003. I have a document with several hundred bookmarks each of a particular format. I want to "rename" each bookmark to a slightly different format. Looping through the bookmarks and changing the name of each would be easy if the Name property were not Read-Only. So, I sequence through bookmarks, identify those that are of the particular format that I wish to change, create the new name, set a range object = to the current bookmark's range, delete the current bookmark, create a new bookmark with the new name and the "saved" range. Seems to work except the formatting of the text is no longer what it was. Whatever was the format for the leading character of the original bookmark's text is now applied to every character of the new bookmark's text.
Any thoughts re why the text associated with the new bookmark is different? I could keep a copy of the original text and then format the new text as per the original, but that seems like a waste of time.
Thanks
Any thoughts re why the text associated with the new bookmark is different? I could keep a copy of the original text and then format the new text as per the original, but that seems like a waste of time.
Thanks