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: