Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
65 lines (38 sloc) 1.24 KB
title keywords f1_keywords ms.prod api_name ms.assetid ms.date
Font.AllCaps Property (Word)
vbawd10.chm156369030
vbawd10.chm156369030
word
Word.Font.AllCaps
ef881fd6-bb35-7cc6-b048-c9ed2111f821
06/08/2017

Font.AllCaps Property (Word)

True if the font is formatted as all capital letters. Read/write Long .

Syntax

expression. AllCaps

expression A variable that represents a 'Font' object.

Remarks

Returns True , False , or wdUndefined (a mixture of True and False). Can be set to True , False , or wdToggle (reverses the current setting).

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

Example

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." 
Else 
 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 
Else 
 MsgBox "You need to select some text." 
End If

See also

Font Object