ZKirk
11-13-2012, 12:46 AM
I've got this function:
Public Sub WB(ByVal bkName As String, ByVal bkText As String)
Dim r As Range
Set r = ActiveDocument.Bookmarks(bkName).Range
r.Text = bkText
ActiveDocument.Bookmarks.Add bkName, r
End Sub
That I use to apply values to bookmarks in my document. How can I iterate over all bookmarks and return there values to None/"" ?
Public Sub WB(ByVal bkName As String, ByVal bkText As String)
Dim r As Range
Set r = ActiveDocument.Bookmarks(bkName).Range
r.Text = bkText
ActiveDocument.Bookmarks.Add bkName, r
End Sub
That I use to apply values to bookmarks in my document. How can I iterate over all bookmarks and return there values to None/"" ?