View Single Post
 
Old 08-17-2015, 01:47 PM
mikemike616 mikemike616 is offline Windows 7 64bit Office 2013
Novice
 
Join Date: Aug 2015
Posts: 7
mikemike616 is on a distinguished road
Default Inserting Cross References into Cell

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.
Reply With Quote