CROSS REFERENCE QUESTION

J

JJ

Word 2003. I have a document which points to various paragraphs and I
would like to use cross referencing as well as the name of the main
paragraph when I refer to it e.g.
SALE OF SHARES AGREEMENT
1 INTERPRETATION
1.1 xxxxxxx
1.2 xxxxxxx
2 PARTIES
2.1 The parties to this agreement are:
2.1.1 xxxx
2.1.2 xxxx
3 BACKGROUND
3.1 xxx
3.2 The second party to this agreement as referred to in clause 1.1
[INTERPRETATION] of this agreement.

Meaning when I insert a cross reference and I refer to clause 1.1 it
should insert the number of clause 1.1 but it should insert the main
clause heading (in this case the words "INTERPRETATION" as well.

Is there any quick way to achieve this with VBA code. Any help or
ideas would be greatly appreciated.
 
S

Stefan Blom

You don't need a macro for this. Just insert two cross-references, one to the
paragraph number and one to the paragraph text.
 
J

JJ

You don't need a macro for this. Just insert two cross-references, one tothe
paragraph number and one to the paragraph text.

--
Stefan Blom
Microsoft Word MVP




Word 2003. I have a document which points to various paragraphs and I
would like to use cross referencing as well as the name of the main
paragraph when I refer to it e.g.
SALE OF SHARES AGREEMENT
1   INTERPRETATION
1.1 xxxxxxx
1.2 xxxxxxx
2   PARTIES
2.1  The parties to this agreement are:
2.1.1   xxxx
2.1.2   xxxx
3  BACKGROUND
3.1  xxx
3.2  The second party to this agreement as referred to in clause 1.1
[INTERPRETATION] of this agreement.
Meaning when I insert a cross reference and I refer to clause 1.1 it
should insert the number of clause 1.1 but it should insert the main
clause heading (in this case the words "INTERPRETATION" as well.
Is there any quick way to achieve this with VBA code. Any help or
ideas would be greatly appreciated.- Hide quoted text -

- Show quoted text -

Hi Stefan
Thans for your reply but I do unfortunately need a macro as I am doing
this work for a client and they want it at a click of a button instead
of inserting and inserting. So basically I want a macro when they run
the macro it will go to the specific clause wait for them to select
the clause which must be referred to and when they click insert or
continue or whatever the macro must then insert the number and the
text of the paragraph. Sorry if I sound silly.
 
S

Sandi V

How about if you select the text for Interpretation, Parties, etc., Insert
the bookmarks and then

Sub ChooseClause()
Application.Dialogs(wdDialogInsertCrossReference).Show
End Sub

?
You'd have to count on the user to put thier cursor at the correct insertion
point before running the macro, though. And the ref type defaults to
whatever the last one used was. I've tried many variations of

Application.Dialogs(wdDialogInsertCrossReference).Show
ReferenceType:="Bookmark"

unsucessfully. Maybe if this is a good workaround, somebody who knows vba
better can help you get the default reftype correct.




JJ said:
You don't need a macro for this. Just insert two cross-references, one to the
paragraph number and one to the paragraph text.

--
Stefan Blom
Microsoft Word MVP




Word 2003. I have a document which points to various paragraphs and I
would like to use cross referencing as well as the name of the main
paragraph when I refer to it e.g.
SALE OF SHARES AGREEMENT
1 INTERPRETATION
1.1 xxxxxxx
1.2 xxxxxxx
2 PARTIES
2.1 The parties to this agreement are:
2.1.1 xxxx
2.1.2 xxxx
3 BACKGROUND
3.1 xxx
3.2 The second party to this agreement as referred to in clause 1.1
[INTERPRETATION] of this agreement.
Meaning when I insert a cross reference and I refer to clause 1.1 it
should insert the number of clause 1.1 but it should insert the main
clause heading (in this case the words "INTERPRETATION" as well.
Is there any quick way to achieve this with VBA code. Any help or
ideas would be greatly appreciated.- Hide quoted text -

- Show quoted text -

Hi Stefan
Thans for your reply but I do unfortunately need a macro as I am doing
this work for a client and they want it at a click of a button instead
of inserting and inserting. So basically I want a macro when they run
the macro it will go to the specific clause wait for them to select
the clause which must be referred to and when they click insert or
continue or whatever the macro must then insert the number and the
text of the paragraph. Sorry if I sound silly.
.
 
M

macropod

Hi JJ,

What you have is, in most respects a set of headings and numbered paragraphs that are just begging to use Word's built-in headings
styles and outline list paragraph numbering. With these, your document could even include a Table of Contents:
SALE OF SHARES AGREEMENT
1 INTERPRETATION
2 PARTIES
3 BACKGROUND

So, if you have a set of numbered headings for: INTERPRETATION; PARTIES; BACKGROUND; etc, using own of Word's heading Styles, you
can quite simply cross-reference them via Insert|Cross-Reference. There really is no need for a macro - just a modicum of learning
how to use Word effectively.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

CROSS REFERENCE 5
Cross reference drop down not activating 1
Heading Styles Problem 5
Cross-reference Insert Default Change 0
Multilevel List 3
Numbered List 1
help with cross-reference 5
Backwards Heading Numbers 4

Top