Kerning Property

Microsoft Word Visual Basic

Kerning Property

       

Returns or sets the minimum font size for which Microsoft Word will adjust kerning automatically. Read/write Single.

expression.Kerning

expression   Required. An expression that returns a Font object.

Example

This example sets the minimum font size for automatic kerning to 12 points or larger in the active document.

ActiveDocument.Content.Font.Kerning = 12

This example displays the minimum font size for which Word will automatically adjust kerning in the selected text.

If Selection.Type = wdSelectionNormal Then
    MsgBox Selection.Font.Kerning
Else
    MsgBox "You need to select some text."
End If