ToggleFormsDesign Method
TOC
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 microsoft.office.tools.excel.dll)

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)
    {
        this.ToggleFormsDesign();
    }
}

Show:
© 2016 Microsoft