![]() |
|
#1
|
|||
|
|||
|
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
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 2 figures cross reference | mmdmov | Word | 0 | 05-05-2010 09:12 AM |
| How to Cross reference a check box in a form | janene_vaughn | Word | 0 | 12-29-2009 12:34 PM |
| Replace web links with internal cross-reference | code deaf | Word | 6 | 12-26-2009 02:49 PM |
| Cross-reference function with Visio? | Barometer | Word | 0 | 11-04-2009 12:38 PM |
| How do I return from a cross reference? | smoggymark | Word | 0 | 10-21-2008 07:45 PM |