Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Shari from Karkur Shari from Karkur is offline
external usenet poster
 
Posts: 13
Default how to format a cross reference?

I would like all cross references that I insert (InsertReferenceCross
Reference)
to appear in a blue font. It doesn't help that my hyperlink style is already
formatted. how? (Word 2003)
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Lene Fredborg Lene Fredborg is offline
external usenet poster
 
Posts: 1,291
Default how to format a cross reference?

You could create a _character_ style that applies blue font. You will then
have to apply that character style to all your cross-references.

Tip: before inserting a cross-reference, select your special character
style. Insert the cross-reference. Then press Ctrl+Spacebar to return to the
underlying paragraph style before you continue typing.

For information about styles, see:
http://www.shaunakelly.com/word/styl...sOnStyles.html

--
Regards
Lene Fredborg
DocTools - Denmark
www.thedoctools.com
Document automation - add-ins, macros and templates for Microsoft Word


"Shari from Karkur" wrote:

I would like all cross references that I insert (InsertReferenceCross
Reference)
to appear in a blue font. It doesn't help that my hyperlink style is already
formatted. how? (Word 2003)

  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Suzanne S. Barnhill Suzanne S. Barnhill is offline
external usenet poster
 
Posts: 33,624
Default how to format a cross reference?

Word suppresses the Hyperlink character style formatting on some hyperlinks
that it inserts, including cross-references and TOC entries. You can apply
this formatting manually, perhaps as a different character style, but you
can't achieve it through the Hyperlink style (which Word will very likely
reapply when you update the REF fields).

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

"Shari from Karkur" wrote in
message ...
I would like all cross references that I insert (InsertReferenceCross
Reference)
to appear in a blue font. It doesn't help that my hyperlink style is

already
formatted. how? (Word 2003)


  #4   Report Post  
Posted to microsoft.public.word.docmanagement
Shari from Karkur Shari from Karkur is offline
external usenet poster
 
Posts: 13
Default how to format a cross reference?

What I wanted to do was to AUTOMATICALLY have xrefs be colored blue when I
insert one.

"Lene Fredborg" wrote:

You could create a _character_ style that applies blue font. You will then
have to apply that character style to all your cross-references.

Tip: before inserting a cross-reference, select your special character
style. Insert the cross-reference. Then press Ctrl+Spacebar to return to the
underlying paragraph style before you continue typing.

For information about styles, see:
http://www.shaunakelly.com/word/styl...sOnStyles.html

--
Regards
Lene Fredborg
DocTools - Denmark
www.thedoctools.com
Document automation - add-ins, macros and templates for Microsoft Word


"Shari from Karkur" wrote:

I would like all cross references that I insert (InsertReferenceCross
Reference)
to appear in a blue font. It doesn't help that my hyperlink style is already
formatted. how? (Word 2003)

  #5   Report Post  
Posted to microsoft.public.word.docmanagement
Lene Fredborg Lene Fredborg is offline
external usenet poster
 
Posts: 1,291
Default how to format a cross reference?

You need a macro to apply the blue color automatically. The macro must be
named "InsertCrossReference" in order to run instead of the built-in command
whenever you select Insert Reference Cross-reference. The macro below
should do what you want. It applies the same blue color as used for
hyperlinks (wdColorBlue). See the comments in the code for an explanation of
what happens.

Sub InsertCrossReference()

Dim oRange As Range
Dim oColor_Old As WdColor

Set oRange = Selection.Range
'Save current font color
oColor_Old = oRange.Characters(1).Font.Color
'Diaplay cross-reference dialog box
Dialogs(wdDialogInsertCrossReference).Show
'Include the inserted cross-reference in oRange
oRange.End = Selection.End
'Apply blue color to oRange
oRange.Font.Color = wdColorBlue
'Reset color after cross-reference
Selection.Font.Color = oColor_Old

Set oRange = Nothing

End Sub

For information about installing macros, see:
http://www.gmayor.com/installing_macro.htm

--
Regards
Lene Fredborg
DocTools - Denmark
www.thedoctools.com
Document automation - add-ins, macros and templates for Microsoft Word


"Shari from Karkur" wrote:

What I wanted to do was to AUTOMATICALLY have xrefs be colored blue when I
insert one.

"Lene Fredborg" wrote:

You could create a _character_ style that applies blue font. You will then
have to apply that character style to all your cross-references.

Tip: before inserting a cross-reference, select your special character
style. Insert the cross-reference. Then press Ctrl+Spacebar to return to the
underlying paragraph style before you continue typing.

For information about styles, see:
http://www.shaunakelly.com/word/styl...sOnStyles.html

--
Regards
Lene Fredborg
DocTools - Denmark
www.thedoctools.com
Document automation - add-ins, macros and templates for Microsoft Word


"Shari from Karkur" wrote:

I would like all cross references that I insert (InsertReferenceCross
Reference)
to appear in a blue font. It doesn't help that my hyperlink style is already
formatted. how? (Word 2003)



  #6   Report Post  
Posted to microsoft.public.word.docmanagement
Shari from Karkur Shari from Karkur is offline
external usenet poster
 
Posts: 13
Default how to format a cross reference?

Thank-you!

This, together with another fix (communicated by mail) really solves my
problem.
(You told me to replace the line:

Dialogs(wdDialogInsertCrossReference).Show

with the following lines:

With Dialogs(wdDialogInsertCrossReference)
.InsertAsHyperLink = True
.Show
End With

...in order to ensure that the "Insert as Hyperlink" check box is always
selected.)

"Lene Fredborg" wrote:

You need a macro to apply the blue color automatically. The macro must be
named "InsertCrossReference" in order to run instead of the built-in command
whenever you select Insert Reference Cross-reference. The macro below
should do what you want. It applies the same blue color as used for
hyperlinks (wdColorBlue). See the comments in the code for an explanation of
what happens.

Sub InsertCrossReference()

Dim oRange As Range
Dim oColor_Old As WdColor

Set oRange = Selection.Range
'Save current font color
oColor_Old = oRange.Characters(1).Font.Color
'Diaplay cross-reference dialog box
Dialogs(wdDialogInsertCrossReference).Show
'Include the inserted cross-reference in oRange
oRange.End = Selection.End
'Apply blue color to oRange
oRange.Font.Color = wdColorBlue
'Reset color after cross-reference
Selection.Font.Color = oColor_Old

Set oRange = Nothing

End Sub

For information about installing macros, see:
http://www.gmayor.com/installing_macro.htm

--
Regards
Lene Fredborg
DocTools - Denmark
www.thedoctools.com
Document automation - add-ins, macros and templates for Microsoft Word


"Shari from Karkur" wrote:

What I wanted to do was to AUTOMATICALLY have xrefs be colored blue when I
insert one.

"Lene Fredborg" wrote:

You could create a _character_ style that applies blue font. You will then
have to apply that character style to all your cross-references.

Tip: before inserting a cross-reference, select your special character
style. Insert the cross-reference. Then press Ctrl+Spacebar to return to the
underlying paragraph style before you continue typing.

For information about styles, see:
http://www.shaunakelly.com/word/styl...sOnStyles.html

--
Regards
Lene Fredborg
DocTools - Denmark
www.thedoctools.com
Document automation - add-ins, macros and templates for Microsoft Word


"Shari from Karkur" wrote:

I would like all cross references that I insert (InsertReferenceCross
Reference)
to appear in a blue font. It doesn't help that my hyperlink style is already
formatted. how? (Word 2003)

Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Find cross-reference from reference Khoshravan Microsoft Word Help 9 September 3rd 08 09:23 PM
Cross-reference--Error! Reference source not found. hbear Microsoft Word Help 2 March 2nd 07 05:27 PM
Change format of cross reference text? Stressed in Tampa Microsoft Word Help 2 April 18th 06 12:58 PM
(cross-reference usage)I see "Error! Reference source not found". spiderou Microsoft Word Help 2 July 8th 05 09:34 PM
SEQ Field not in cross-reference reference type pull-down menu The Josh Microsoft Word Help 5 May 25th 05 02:27 PM


All times are GMT +1. The time now is 12:09 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"