Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
suz423 suz423 is offline
external usenet poster
 
Posts: 1
Default 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   Report Post  
Posted to microsoft.public.word.docmanagement
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default 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

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing the default style in Word 2007 PRR Microsoft Word Help 13 March 31st 10 03:31 AM
Stop Word from Changing Style SusanB New Users 5 December 17th 08 09:46 PM
Word 2007: How do I apply "Capitalize Each Word Case" to a Style? alexed Microsoft Word Help 1 June 16th 08 08:08 PM
Word keeps changing the style I assigned to it's own Dana H Microsoft Word Help 2 October 13th 06 03:20 PM
Changing Style of One Word Josh Microsoft Word Help 6 February 21st 06 06:41 AM


All times are GMT +1. The time now is 05:59 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"