View.ShowHyphens Property (Word)

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

True if optional hyphens are displayed. An optional hyphen indicates where to break a word when it falls at the end of a line. Read/write Boolean.

expression .ShowHyphens

expression An expression that returns a View object.

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

Concepts

Other resources

Show: