Changing the cross-reference style.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a document where the headings are all in upper case. When inserting a
cross-reference, it lists the headings as they appear (upper case). However,
I would like the default style of the cross-reference to be in sentence case
(FirstCap). How do I change the cross-reference style for a document?
 
Toggle the ref field display and add the following capitalisation switches
\*Lower \*Firstcap
Then update the field (F9)

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
Thanks for the response. I'm aware that I could add the switches after the
fact, but in a large legal document that is quite a task. I was hoping to be
able to change the style so that when inserted, the formating was correct.
 
You could update all the REF fields with a macro. The following should do
the trick. Try it on a copy of the document.
http://www.gmayor.com/installing_macro.htm

Sub AddFirstCapSwitch()
ActiveWindow.View.ShowFieldCodes = True
With Selection.Find
.ClearFormatting
.Text = "^d REF"
.Forward = True
.Wrap = wdFindStop
.Format = False
.MatchWildcards = False

Do While .Execute
With Selection
.MoveRight Unit:=wdCharacter, Count:=1
.MoveLeft Unit:=wdCharacter, Count:=1
.TypeText Text:="\*lower \*Firstcap "
.Fields.Update
End With

' prepare for next loop
Selection.Collapse wdCollapseEnd
Loop
End With
ActiveWindow.View.ShowFieldCodes = False
End Sub


--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
Back
Top