Share via


Document.AutoSummarize Method

Word Developer Reference

Creates an automatic summary of the specified document, and returns a Range object.

Syntax

expression.AutoSummarize(Length, Mode, UpdateProperties)

expression   Required. A variable that represents a Document object.

Parameters

Name Required/Optional Data Type Description
Length Optional Variant The length of the summary as a percentage of the total document length (the larger the number, the more detail that's included in the summary).
Mode Optional Variant Specifies the way the summary is displayed. Can be one of the following WdSummaryMode constants.
UpdateProperties Optional Variant True to update the Keyword and Comments boxes in the Properties dialog box to reflect the content of the summary for the specified document.

Return Value
Range

Remarks

This method corresponds to the options in AutoSummarize dialog box.

Example

This example creates an automatic summary of the active document by highlighting its key points.

Visual Basic for Applications
  ActiveDocument.AutoSummarize Length:=30, _
    Mode:=wdSummaryModeHighlight, _
    UpdateProperties:=True

See Also