This documentation is archived and is not being maintained.

Workbook.DeleteNumberFormat Method

Office 2007
Deletes a custom number format from the workbook.

Syntax

expression.DeleteNumberFormat(NumberFormat)

expression   A variable that represents a Workbook object.

Parameters

NameRequired/OptionalData TypeDescription
NumberFormatRequiredStringNames the number format to be deleted.

Example

This example deletes the number format "000-00-0000" from the active workbook.

Visual Basic for Applications
ActiveWorkbook.DeleteNumberFormat("000-00-0000")



Show: