Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

Workbook.RemoveDocumentInformation Method (2007 System)

Removes all information of the specified type from the workbook.

Namespace:  Microsoft.Office.Tools.Excel
Assembly:  Microsoft.Office.Tools.Excel.v9.0 (in Microsoft.Office.Tools.Excel.v9.0.dll)

public void RemoveDocumentInformation(
	XlRemoveDocInfoType RemoveDocInfoType
)

Parameters

RemoveDocInfoType
Type: XlRemoveDocInfoType

One of the Microsoft.Office.Interop.Excel.XlRemoveDocInfoType values that specifies the type of information to be removed.

The following code example removes all the workbook properties of the current workbook.

This example is for a document-level customization.

private void RemoveWorkbookProperties()
{
    this.RemoveDocumentInformation(
        Excel.XlRemoveDocInfoType.xlRDIDocumentProperties);
}

Community Additions

ADD
Show:
© 2015 Microsoft