Hi there,
I'm trying to insert a previosly defined Bookmark in a specific Cell in the Table of my Header by using VBA.
here's what im working with:
ActiveDocument.Sections(2).Headers(wdHeaderFooterPrimary).Range.Tables(1).Cell(3, 4).Range.InsertCrossReference ReferenceType:="Textmarke", ReferenceKind:=wdContentText, ReferenceItem:="Date", InsertAsHyperlink:=True
Strangely this command adds the Reference at the Cell 1,3 and deletes the content of Cell 3,4.
First sreenshot shows the wanted result. The second shows what the macro is doing.
What am I doing wrong?