ConsecutiveHyphensLimit Property Example

This example enables automatic hyphenation for MyReport.doc and limits the number of consecutive lines that can end with hyphens to two.

With Documents("MyReport.doc")
    .AutoHyphenation = True
    .ConsecutiveHyphensLimit = 2
End With

This example sets no limit on the number of consecutive lines that can end with hyphens.

ActiveDocument.ConsecutiveHyphensLimit = 0