Document.ToggleFormsDesign method (Word)

Switches form design mode on or off.

Syntax

expression. ToggleFormsDesign

expression Required. A variable that represents a Document object.

Remarks

When Microsoft Word is in form design mode, the Control Toolbox toolbar is displayed. Use this toolbar to insert Microsoft 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.

Example

This example switches to form design mode if the Control Toolbox toolbar is not currently displayed.

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

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.