The change case/Title Case selection works incorrectly

S

Steve

The Format/Change Case/Title Case option in Word capitalizes the first letter
of EVERY word. This is not correct, it should not capitalize the first letter
of words like "the" etc.

From http://www.writers.com/tips_titles.html

"The U.S. Government Printing Office Style Manual offers one easy style:
'Capitalize all words in titles of publications and documents, except a, an,
the, at, by, for, in, of, on, to, up, and, as, but, it, or, and nor.' "
--
Steve

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/com...58bad7&dg=microsoft.public.word.docmanagement
 
S

Suzanne S. Barnhill

That's one rule. Others don't capitalize words under a certain length. The
rule I was taught was never to capitalize prepositions or articles. This,
however, assumes that you know what a preposition or an article is. And many
people find it awkward to leave long prepositions such as "through"
uncapped.



Steve said:
The Format/Change Case/Title Case option in Word capitalizes the first letter
of EVERY word. This is not correct, it should not capitalize the first letter
of words like "the" etc.

From http://www.writers.com/tips_titles.html

"The U.S. Government Printing Office Style Manual offers one easy style:
'Capitalize all words in titles of publications and documents, except a, an,
the, at, by, for, in, of, on, to, up, and, as, but, it, or, and nor.' "
--
Steve

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.
http://www.microsoft.com/office/com...58bad7&dg=microsoft.public.word.docmanagement
 
G

Graham Mayor

You can't please everybody all the time, but if this bothers you, the
following macro will change selected text to title case omitting the listed
words.

Sub TitleCaseWithExceptions()
Dim vFindText As Variant
Dim vReplText As Variant
Dim i As Long

vFindText = Array("A", "An", "The", "At", "By", "For", "In", "Of", "On",
"To", "Up", "And", "As", _
"But", "It", "Or", "Nor")
vReplText = Array("a", "an", "the", "at", "by", "for", "in", "of", "on",
"to", "up", "and", "as", _
"but", "it", "or", "nor")

Selection.Range.Case = wdTitleWord

With Selection.Find
.Forward = True
.Wrap = wdFindContinue
.MatchWholeWord = True
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
.Format = True
.MatchCase = True
For i = LBound(vFindText) To UBound(vFindText)
.Text = vFindText(i)
.Replacement.Text = vReplText(i)
.Execute replace:=wdReplaceAll
Next i
End With
End Sub

http://www.gmayor.com/installing_macro.htm


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


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

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