SummaryViewMode Property

Microsoft Word Visual Basic

Returns or sets the way a summary is displayed. This property corresponds to Type of summary in the AutoSummarize dialog box (Tools menu). Read/write WdSummaryMode.

Can be one of the following WdSummaryMode constants.

Constant Description
wdSummaryModeHighlight Highlights the key points in the specified document and displays the AutoSummarize toolbar.
wdSummaryModeInsert Inserts a summary at the beginning of the specified document.
wdSummaryModeCreateNew Creates a new document and inserts the specified summary.
wdSummaryModeHideAllButSummary Hides everything except the specified summary and displays the AutoSummarize toolbar.

Example

This example hides everything in the active document except the summary text.

With ActiveDocument
    .SummaryViewMode = wdSummaryModeHideAllButSummary
    .SummaryLength = 60
    .ShowSummary = True
End With