DeleteNumberFormat Method

Applies To

Workbook Object.

Description

Deletes a custom number format from the workbook.

Syntax

object.DeleteNumberFormat(numberFormat)

object

Required. The Workbook object.

numberFormat

Required. A string that names the number format to delete.

Example

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


ActiveWorkbook.DeleteNumberFormat("000-00-0000")