Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-02-2010, 08:54 PM
macron macron is offline Cross reference - full vs relative context Windows XP Cross reference - full vs relative context Office XP
Novice
Cross reference - full vs relative context
 
Join Date: Dec 2010
Posts: 1
macron is on a distinguished road
Default Cross reference - full vs relative context

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

Thread Tools
Display Modes


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

Other Forums: Access Forums

All times are GMT -7. The time now is 07:55 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft