KernedPairs Property

Microsoft Word Visual Basic

Show All Show All

KernedPairs Property

Indicates that character pairs in a WordArt object have been kerned. Read/write MsoTriState.

MsoTriState can be one of these MsoTriState constants.
msoCTrue
msoFalse
msoTriStateMixed
msoTriStateToggle
msoTrue

expression.KernedPairs

expression    Required. An expression that returns a TextEffectFormat object.

Example

This example turns on character pair kerning for all WordArt objects in the active document.

Sub Kerned()
    With ActiveDocument.Range(1, ActiveDocument.Shapes.Count).ShapeRange
        If .Type = msoTextEffect Then
            .TextEffect.KernedPairs = True
        End If
    End With
End Sub