B
Byron
I have a bunch of templates that make heavy use of bookmarks. I'm
trying to make it difficult for the users to accidentally delete them.
Is there a way to change the character that Word uses to display a
bookmark's start and end position? I would like to make it more
visible to the user. I set ShowBookmarks to true so that the users
can at least see them. I've also added the code below to the
document_new event.
Thanks,
code:
Dim bm As Bookmark, r As Range
For Each bm In ActiveDocument.Bookmarks
Set r = bm.Range
r.Collapse wdCollapseStart
r.Text = Chr$(135)
r.Font.Color = wdColorRed
r.Font.Hidden = True
Set r = bm.Range
r.Collapse wdCollapseEnd
r.Text = Chr$(135)
r.Font.Color = wdColorRed
r.Font.Hidden = True
Next
trying to make it difficult for the users to accidentally delete them.
Is there a way to change the character that Word uses to display a
bookmark's start and end position? I would like to make it more
visible to the user. I set ShowBookmarks to true so that the users
can at least see them. I've also added the code below to the
document_new event.
Thanks,
code:
Dim bm As Bookmark, r As Range
For Each bm In ActiveDocument.Bookmarks
Set r = bm.Range
r.Collapse wdCollapseStart
r.Text = Chr$(135)
r.Font.Color = wdColorRed
r.Font.Hidden = True
Set r = bm.Range
r.Collapse wdCollapseEnd
r.Text = Chr$(135)
r.Font.Color = wdColorRed
r.Font.Hidden = True
Next