Edit

Share via


Font.Bold property (Word)

True if the font is formatted as bold. Read/write Long.

Syntax

expression.Bold

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.

Example

This example makes the entire selection bold if part of the selection is formatted as bold.

If Selection.Type = wdSelectionNormal Then 
 If Selection.Font.Bold = wdUndefined Then _ 
 Selection.Font.Bold = True 
Else 
 MsgBox "You need to select some text." 
End If

See also

Font Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.