ToggleFormsDesign Method
Collapse the table of content
Expand the table of content
The document is archived and information here might be outdated

Workbook.ToggleFormsDesign Method

Toggles Microsoft Office Excel into and out of design mode.

Namespace: Microsoft.Office.Tools.Excel
Assembly: Microsoft.Office.Tools.Excel (in

public virtual void ToggleFormsDesign ()

The following code example presents a method that checks the DesignMode property to determine whether the workbook is currently in design mode. If the workbook is not in design mode, then the ToggleFormsDesign method switches the workbook into design mode.

private void WorkbookToggleFormsDesign()
    if (!this.DesignMode)

© 2016 Microsoft