Cross References

S

Steve Lang

Hi All,

I have code to automatically create cross references (Example to location
XR4: "{REF XR4 \h}") in a document. No prob. The target of the reference is
bold text, while the reference needs to be plain. Again, no prob, as part of
the process that creates the reference, the bold is turned off.

Where the problem arises, is when the document is printed, all the cross
references again turn to bold. The only way I have found thus far to
completely disable the bolding is to *manually* select the reference text
and turn the bold off. What is really weird, is that doing the same action
(Selection.Font.Bold = False) via code doesn't work; when the document is
printed, the cross references are reverted to bold text.

I've trapped the print command to no avail, the changes occur when the
actual print button on the dialog itself is clicked.

Does anyone have any ideas?

TIA and have a great day!

Steve
 
J

Jay Freedman

Hi Steve,

Add a switch to the field codes:

{REF XR4 \h \*CHARFORMAT}

The field result will then show the formatting you apply to the R of "REF"
regardless of the formatting of the target location.
 
S

Steve Lang

Thanks Jay,

You "da man!"

Steve


Jay Freedman said:
Hi Steve,

Add a switch to the field codes:

{REF XR4 \h \*CHARFORMAT}

The field result will then show the formatting you apply to the R of "REF"
regardless of the formatting of the target location.
 

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

Top