ToggleButton.FontWeight property (Access)
Use the FontWeight property to specify the line width that Windows uses to display and print characters in a control. Read/write Integer.
expression A variable that represents a ToggleButton object.
The FontWeight property uses the following settings.
You can set the default for this property by using a control's default control style or the DefaultControl property in Visual Basic.
A font's appearance on screen and in print may differ, depending on your computer and printer. For example, a FontWeight property setting of Thin may look identical to Normal on screen but appear lighter when printed.
The FontBold property, which is available only in Visual Basic and macros, can also be used to set the line width for a control's or report's text to bold. The FontBold property gives you a quick way to make text bold; the FontWeight property gives you finer control over the line width setting for text. The following table shows the relationship between these properties' settings.
|FontBold = False||FontWeight = Normal (400)|
|FontBold = True||FontWeight = Bold (700)|
|FontWeight < 700||FontBold = False|
|FontWeight > = 700||FontBold = True|
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.