Options.AutoFormatAsYouTypeApplyBorders property (Word)
True if a series of three or more hyphens (-), equal signs (=), or underscore characters (_) are automatically replaced by a specific border line when the ENTER key is pressed. Read/write Boolean.
expression A variable that represents an Options object.
Hyphens (-) are replaced by a 0.75-point line, equal signs (=) are replaced by a 0.75-point double line, and underscore characters (_) are replaced by a 1.5-point line.
This example causes sequences of three or more hyphens (-), equal signs (=), or underscore characters (_) to be transformed into borders.
Options.AutoFormatAsYouTypeApplyBorders = True
This example returns the current setting for the Borders option on the AutoFormat As You Type tab in the AutoCorrect dialog box (Tools menu).
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.