Export (0) Print
Expand All
Expand Minimize

Document.ToggleFormsDesign Method (Word)

Published: July 16, 2012

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 
 ActiveDocument.ToggleFormsDesign 
End If

Community Additions

ADD
Show:
© 2014 Microsoft