AllCaps Property

True if the font is formatted as all capital letters. Returns True, False, or wdUndefined (a mixture of True and False). Can be set to True, False, or wdToggle (reverses the current setting). Read/write Long.


Setting AllCaps to True sets SmallCaps to False, and vice versa.


This example checks the third paragraph in the active document for text formatted as all capital letters.

If ActiveDocument.Paragraphs(3).Range.Font.AllCaps = True Then
    MsgBox "Text is all caps."
    MsgBox "Text is not all caps."
End if

This example formats the selected text as all capital letters.

If Selection.Type = wdSelectionNormal Then
    Selection.Font.AllCaps = True
    MsgBox "You need to select some text."
End If

Applies to | Font Object

See Also | Case Property | DropCap Property | SmallCaps Property