WorkbookBase.RemoveCustomization Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Removes the customization that was created by using Office development tools in Visual Studio from the workbook.
public:
void RemoveCustomization();
public void RemoveCustomization ();
member this.RemoveCustomization : unit -> unit
Public Sub RemoveCustomization ()
Exceptions
The custom document properties or the cached data could not be removed from the workbook.
The document is protected.
Remarks
This method removes the customization by performing the following tasks:
It deletes the
_AssemblyName
and_AssemblyLocation
custom properties from the workbook. For more information, see Custom Document Properties Overview.It deletes the cached data from the workbook. For more information about cached data, see Caching Data.
This method might throw an UnauthorizedAccessException if the workbook is protected. You should remove any protection from the workbook before calling this method.