ToggleFormsDesign Method

Applies To

Document object.

Description

Toggles form design mode on or off. When Word is in form design mode, the Control Toolbox toolbar is displayed. You can use this toolbar to insert ActiveX controls such as command buttons, scroll bars, and option buttons. In form design mode, event procedures don't run, and when you click an embedded control, the control's sizing handles appear.

Syntax

expression.ToggleFormsDesign

expression Required. An expression that returns a Document object.

Example

This example switches to form design mode if the Control Toolbox toolbar isn't currently displayed.

If CommandBars("Control Toolbox").Visible = False Then
    ActiveDocument.ToggleFormsDesign
End If