Font.Spacing Property

Word Developer Reference

Returns or sets the spacing (in points) between characters. Read/write Single.

Syntax

expression.Spacing

expression   Required. A variable that represents a Font object.

Example

This example demonstrates two different character spacings at the beginning of the active document.

Visual Basic for Applications
  Set myRange = ActiveDocument.Range(Start:=0, End:=0)
With myRange
    .InsertAfter "Demonstration of no character spacing."
    .InsertParagraphAfter
    .InsertAfter "Demonstration of character spacing (1.5pt)."
    .InsertParagraphAfter
End With
ActiveDocument.Paragraphs(2).Range.Font.Spacing = 1.5

This example sets the character spacing of the selected text to 2 points.

Visual Basic for Applications
  If Selection.Type = wdSelectionNormal Then
    Selection.Font.Spacing = 2
Else
    MsgBox "You need to select some text."
End If

See Also