Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
{\*\bkmkstart BMK_1}...
{\*\bkmkend BKM_1}
Sub RenameBookmarks()
' although it does NOT rename them
' it creates a new one for the same range
' then deletes the old one
Dim BM_Names()
Dim j As Long
Dim var
Dim strStart As String
For var = 1 To ActiveDocument.Bookmarks.Count
strStart = ActiveDocument.Bookmarks(var).Name
ReDim Preserve BM_Names(j)
BM_Names(j) = strStart
With ActiveDocument
.Bookmarks.Add Name:="NEW_" & _
strStart, _
Range:=ActiveDocument.Bookmarks(var).Range
End With
j = j + 1
Next
For var = 0 To UBound(BM_Names())
ActiveDocument.Bookmarks(BM_Names(var)).Delete
Next
End Sub
Dim j As Long
Dim var
Dim strStart As String
For var = 1 To ActiveDocument.Bookmarks.Count
strStart = ActiveDocument.Bookmarks(var).Name
With ActiveDocument
.Bookmarks.Add Name:="NEW_" & _
strStart, _
Range:=ActiveDocument.Bookmarks(strStart).Range
End With
ActiveDocument.Bookmarks(strStart).Delete
Next
strStart = ActiveDocument.Bookmarks(var).Name
Sub RenameBookmarks()
' although it does NOT rename them
' it creates a new one for the same range
' then deletes the old one
Dim BM_Names()
Dim i As Long
With ActiveDocument
For i = 1 To .Bookmarks.Count
ReDim Preserve BM_Names(i)
BM_Names(i) = .Bookmarks(i).Name
Next
For i = 1 To .Bookmarks.Count
With .Bookmarks(BM_Names(i))
.Range.Bookmarks.Add Name:="NEW_" & .Name, Range:=.Range
.Delete
End With
Next
End With
End Sub