Font.Bold property (PowerPoint)
Determines whether the character format is bold. Read/write.
Syntax
expression.Bold
expression A variable that represents a Font object.
Return value
MsoTriState
Remarks
The value of the Bold property can be one of these MsoTriState constants.
Constant | Description |
---|---|
msoFalse | The character format is not bold. |
msoTriStateMixed | The specified text range contains both bold and nonbold characters. |
msoTrue | The character format is bold. |
Example
This example sets characters one through five in the title on slide one to bold.
Set myT = Application.ActivePresentation.Slides(1).Shapes.Title
myT.TextFrame.TextRange.Characters(1, 5).Font.Bold = msoTrue
See also
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.