ShowHyphens Property

Microsoft Word Visual Basic

expression.ShowHyphens

expression    Required. An expression that returns a View object.

Example

This example inserts an optional hyphen before the selection and then displays optional hyphens in the active window.

Selection.InsertBefore Chr(31)
ActiveDocument.ActiveWindow.View.ShowHyphens = True