Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Changing TOC2 Style to be 'Capitalize Every Word' in Word 2007
I cannot figure out how to change the 2nd level of my Table of Contents to be
'Capitalize Every Word'. Other options such as 'all caps' can be done in the change font section but 'capitalize every word' is not there. How can I do this? |
#2
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Changing TOC2 Style to be 'Capitalize Every Word' in Word 2007
You cannot accomplish this by using the style definition.
What would probably be better would be to format the actual heading 2s in the document in that way which can be done by using a macro containing the following code Dim H2 As Range Selection.HomeKey wdStory Selection.Find.Style = wdStyleHeading2 With Selection.Find Do While .Execute(FindText:="", Forward:=True, _ MatchWildcards:=False, Wrap:=wdFindStop, MatchCase:=False) = True Set H2 = Selection.Range H2.Case = wdTitleWord Selection.Collapse wdCollapseEnd Loop End With Then update the table of contents. The following code will however make the change in just the table of contents, but if the table of contents is subsequently updated, the Heading 2 entries will revert to their original format: Dim H2 As Range Selection.HomeKey wdStory Selection.Find.Style = wdStyleTOC2 With Selection.Find Do While .Execute(FindText:="", Forward:=True, _ MatchWildcards:=False, Wrap:=wdFindStop, MatchCase:=False) = True Set H2 = Selection.Range H2.Case = wdTitleWord Selection.Collapse wdCollapseEnd Loop End With -- Hope this helps. Please reply to the newsgroup unless you wish to avail yourself of my services on a paid consulting basis. Doug Robbins - Word MVP, originally posted via msnews.microsoft.com "suz423" wrote in message ... I cannot figure out how to change the 2nd level of my Table of Contents to be 'Capitalize Every Word'. Other options such as 'all caps' can be done in the change font section but 'capitalize every word' is not there. How can I do this? |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Changing the default style in Word 2007 | Microsoft Word Help | |||
Stop Word from Changing Style | New Users | |||
Word 2007: How do I apply "Capitalize Each Word Case" to a Style? | Microsoft Word Help | |||
Word keeps changing the style I assigned to it's own | Microsoft Word Help | |||
Changing Style of One Word | Microsoft Word Help |