Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have made a button. I want the button to do the following thing :
1. Remove an old Document Bookmark
2. Create an new Bookmark from the current selections.
in my chart i wil refer to the Bookmark.
When creating a macro i have a type mismatch on line 3. Anybody know what can be the problem ?
sub AddToCompareBookmark
ActiveDocument.RemoveDocBookmark "ToCompare"
ActiveDocument.GetApplication.WaitForIdle
ActiveDocument.CreateDocBookmark "ToCompare"
end sub
Try this...
Sub AddToCompareBookmark
ActiveDocument.RemoveDocBookmark "ToCompare"
ActiveDocument.GetApplication.WaitForIdle
ActiveDocument.CreateDocBookmark False, "ToCompare"
End Sub
Cheers - DV
Sorry this is not the answer.
Check the case on the bookmark name.