Examples:
The following VBA example enables automatic hyphenation for the selected text object, specifying that a minimum of 2 characters are to be left on a line or carried to the next line following a hyphen.
Sub Test()
With ActiveShape.Text.HyphenationSettings
.UseAutomaticHyphenation = True
.MinCharactersBefore = 2
.MinCharactersAfter = 2
End With
End Sub