Changing the cross-reference style.

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?
 
G

Graham Mayor

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

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
G

Guest

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.
 
G

Graham Mayor

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

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 

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