Hi folks – is there something special one needs to know to be able to code for adding a bookmark to a document? I need to be able to do so and all I did was record the creation of the bookmark and try to play it back – but everytime it says it doesn’t support this object – “object doesn’t support this property or method”. The entire macro just looks like this:
Sub RecBlock() Selection.TypeParagraph Selection.MoveUp Unit:=wdLine, Count:=1 With ActiveDocument.Bookmarks .Add Range:=Selection.Range, Name:="RECIPIENT_NAME" .DefaultSorting = wdSortByName .ShowHidden = False End With Selection.MoveDown Unit:=wdLine, Count:=1 With ActiveDocument.Bookmarks .Add Range:=Selection.Range, Name:="RECIPIENT_ADDRESS" .DefaultSorting = wdSortByName .ShowHidden = False End With End Sub
Exactly as recorded, but it just won’t play!
Help!