Syntax
Bold [On]
Bold()
Remarks
The Bold statement adds or removes the bold character format for the current selection, or controls bold formatting for characters to be inserted at the insertion point.
Argument | Explanation | |
On | Specifies whether to add or remove the bold format: 1 Formats the selection as bold 0 (zero) Removes the bold format Omitted Toggles the bold format |
The Bold() function returns the following values.
Value | Explanation | |
0 (zero) | If none of the selection is formatted as bold | |
–1 | If part of the selection is formatted as bold | |
1 | If all the selection is formatted as bold |
Example
This example applies the bold format to the entire selection if part of the selection is formatted as bold:
If Bold() = -1 Then Bold 1
See Also
FormatFont