Case Property

Applies To

Range object.

Description

Returns or sets the case of the text in the specified range. Can be one of the following WdCharacterCase constants: wdLowerCase, wdNextCase, wdTitleSentence, wdTitleWord, wdToggleCase, or wdUpperCase. Read/write Long.

See Also

AllCaps property, SmallCaps property.

Example

This example changes the first word in the selection to uppercase.

Selection.Words(1).Case = wdUpperCase
This example capitalizes the first letter of each sentence in the first paragraph of the document.

Set myRange = ActiveDocument.Paragraphs(1).Range
For Each Sent In myRange.Sentences
    Sent.Case = wdTitleSentence
Next Sent