Share via

Using "cross reference" "insert reference to" heading number and text

Anonymous
2011-12-27T12:55:42+00:00

Using Word 2010.

I would like to be able to insert as cross reference a heading number and the corresponding text at the same time.

Currently, the "Insert reference to" option does not provide the choice "heading number and text". Therefore I want to insert both I have to repeat the operation twice and add a space.

I think remembering this option being available with XP.

How could I restore it.

If I have to create a macro, I would need some support. The best would be a video tutorial.

Thank in advance.

Microsoft 365 and Office | Word | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

7 answers

Sort by: Most helpful
  1. Doug Robbins - MVP - Office Apps and Services 322.8K Reputation points MVP Volunteer Moderator
    2015-12-23T07:37:35+00:00

    If you insert a Cross reference to the Paragraph number of a Numbered item, and then IMMEDIATELY run a macro containing the following code, it will insert a space and then a cross reference to the Paragraph text of the Numbered item.

    Dim rng As Range

    Dim strCode As String

    Set rng = Selection.Range

    rng.MoveStart wdCharacter, -1

    strCode = rng.Fields(1).Code.Text

    rng.InsertAfter " "

    rng.Collapse wdCollapseEnd

    ActiveDocument.Fields.Add rng, wdFieldEmpty, Replace(strCode, "\r", ""), False

    rng.MoveEnd wdCharacter, 1

    Set rng = rng.Fields(1).Code

    rng.MoveEnd wdCharacter, 1

    rng.Collapse wdCollapseEnd

    rng.Select

    I would suggest adding a button to the Quick Access Toolbar to run the macro.

    10+ people found this answer helpful.
    0 comments No comments
  2. Suzanne S Barnhill 277K Reputation points MVP Volunteer Moderator
    2011-12-27T14:00:11+00:00

    You may be remembering wrong: I don't have Word 2002 installed, but in Word 2003, there is not an option to insert both the paragraph number and the heading text in a single cross-reference (this is possible with captions). You will need to insert two REF fields, one for the paragraph number and one for the heading text.

    1 person found this answer helpful.
    0 comments No comments
  3. Anonymous
    2015-12-22T08:09:37+00:00

    Any news on this topic?

    0 comments No comments
  4. Suzanne S Barnhill 277K Reputation points MVP Volunteer Moderator
    2011-12-27T17:28:06+00:00

    The article you mention (http://wordfaqs.mvps.org/FormatCrossReferences.htm) does not address this issue.

    0 comments No comments
  5. Anonymous
    2011-12-27T14:27:21+00:00

    Hi Suzanne.

    From your answer, I understand that I have to repeat the action twice.

    My idea was to create a new "Insert reference to" option and call it "Heading number and text".

    I am currently reading a document which I think you wrote: "Formatting Cross-reference".

    From there, I thought that I might be able to create this new option.

    0 comments No comments