Muokkaa

Jaa


Document.ConsecutiveHyphensLimit property (Word)

Returns or sets the maximum number of consecutive lines that can end with hyphens. Read/write. Long.

Syntax

expression. ConsecutiveHyphensLimit

expression A variable that represents a Document object.

Remarks

If the ConsecutiveHyphensLimit property is set to 0 (zero), any number of consecutive lines can end with hyphens.

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

See also

Document Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.