A search didn't find anything and the help file is very silent on the subject.
What's the difference between wdNumberFullContext and wdNumberRelativeContext. They seem to produce the same result.
I have three levels of headings, with the following number format: 1.0, 1.1, and A.
Full and relative show 1.1A, no context shows just the 'A'.
I used the following macro:
Code:
Sub ShowXref()
myHeadings = ActiveDocument.GetCrossReferenceItems(wdRefTypeNumberedItem)
With Selection
For i = 1 To UBound(myHeadings)
.TypeText myHeadings(i)
.TypeText Chr$(9)
.InsertCrossReference ReferenceType:=wdRefTypeNumberedItem, _
ReferenceKind:=wdContentText, ReferenceItem:=i
.TypeText Chr$(9)
.InsertCrossReference ReferenceType:=wdRefTypeNumberedItem, _
ReferenceKind:=wdNumberFullContext, ReferenceItem:=i
.TypeText Chr$(9)
.InsertCrossReference ReferenceType:=wdRefTypeNumberedItem, _
ReferenceKind:=wdNumberNoContext, ReferenceItem:=i
.TypeText Chr$(9)
.InsertCrossReference ReferenceType:=wdRefTypeNumberedItem, _
ReferenceKind:=wdNumberRelativeContext, ReferenceItem:=i
.TypeParagraph
Next i
End With
End Sub
Thanks in advance