This documentation is archived and is not being maintained.

Workbook.RemoveCustomization Method

Removes the Visual Studio Tools for Office customization from the workbook.

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

public void RemoveCustomization ()

This method removes the Runtime Storage Control from the document, and deletes the _AssemblyName and _AssemblyLocation custom document properties. For more information, see Runtime Storage Control Overview and Custom Document Properties Overview.

This method might throw a COMException if a worksheet in the workbook is protected. You should remove any protection from worksheets in the workbook before calling this method.