Styles question

D

DeanL

Hi guys,

I'm trying to set up a style that is Title Case but can't figure out
how to do it. Has anyone done this before or am I barking up the
wrong fire hydrant?

Many thanks, Dean...
 
J

Jay Freedman

Hi guys,

I'm trying to set up a style that is Title Case but can't figure out
how to do it. Has anyone done this before or am I barking up the
wrong fire hydrant?

Many thanks, Dean...

That must be a tall hydrant...

Sorry, but the only kinds of case settings you can include in a style
are All Caps or Small Caps in the Font dialog.

One thing you can do is to open the Styles and Formatting pane,
right-click the name of your style, and choose "Select all N
instances"; when they're all selected, click the Format > Change Case
menu (or the Change Case button in the Home > Font group in Word 2007)
and select title case.

Alternatively, you could use this macro to find each occurrence of
text in a specific style (here, one I defined called TitleCaseHead)
and set its case.

Sub ApplyTitleCase()
Dim oRg As Range
Set oRg = ActiveDocument.Range
With oRg.Find
.Format = True
.Style = ActiveDocument.Styles("TitleCaseHead")
.Wrap = wdFindStop
While .Execute
oRg.Case = wdTitleWord
Wend
End With
End Sub

(see http://www.gmayor.com/installing_macro.htm if needed.) You can
run this macro as often as necessary, and it will change only the new
instances that haven't yet been set to title case.
 

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