Font.NumberForm property (Word)
Returns or sets the number form setting for an OpenType font. Read/write WdNumberForm.
Syntax
expression. NumberForm
expression An expression that returns a Font object.
Remarks
Numbers in OpenType fonts can be displayed either with consistent heights along the baseline of the text (called "lining"), or with varying heights (called "hanging" or "old style") where numbers are displayed above or below the baseline of the text. Use the NumberForm property to specify whether numbers are displayed using lining or old-style.
Setting this property has the same effect as selecting an item in the dropdown box next to Number forms: (OpenType features group, Advanced tab in the Font dialog in Word).
Example
The following code example sets the number form to "Old-style" for the font in the active document.
ActiveDocument.Range.Font.NumberForm = wdNumberFormOldStyle
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.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for