How to check if a bookmark exists or not in MS word VBA?
Sub CheckBookMark()
If ActiveDocument.Bookmarks.Exists("BookMarkName") = True Then
MsgBox "Bookmark Exist"
End If
End Sub
Sub CheckBookMark()
If ActiveDocument.Bookmarks.Exists("BookMarkName") = True Then
MsgBox "Bookmark Exist"
End If
End Sub
No comments:
Post a Comment