I'm trying to insert a cross reference into a cell but my code doesn't seem to work. Everything executes properly but when the macro finishes, nothing appears in the cell in which it was inserted. Updating all fields doesn't do anything either. Here's my code:
Code:
With ActiveDocument.Range.Tables(4)
...
With .Cell(2, 2).Range
...
.InsertCrossReference ReferenceType:=wdRefTypeBookmark, ReferenceKind:= wdContentText, _
ReferenceItem:="DATE", InsertAsHyperlink:=True
End With
End With
Is there another way I should be doing this? I'm really trying to avoid using Selection.