Expand Minimize

Document.ToggleFormsDesign Method (Word)

Switches form design mode on or off.

expression .ToggleFormsDesign

expression Required. A variable that represents a Document object.

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

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

If CommandBars("Control Toolbox").Visible = False Then 
End If
© 2015 Microsoft