Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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 | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Find cross-reference from reference | Microsoft Word Help | |||
Cross-reference--Error! Reference source not found. | Microsoft Word Help | |||
Change format of cross reference text? | Microsoft Word Help | |||
(cross-reference usage)I see "Error! Reference source not found". | Microsoft Word Help | |||
SEQ Field not in cross-reference reference type pull-down menu | Microsoft Word Help |