Dialog.Execute Method

Word Developer Reference

Applies the current settings of a Microsoft Office Word dialog box.

Syntax

expression.Execute

expression   Required. A variable that represents a Dialog object.

Example

The following example enables the Keep with next check box on the Line and Page Breaks tab in the Paragraph dialog box.

Visual Basic for Applications
  With Dialogs(wdDialogFormatParagraph)
    .KeepWithNext = 1
    .Execute
End With

See Also