Workbook.DeleteNumberFormat method (Excel)
Deletes a custom number format from the workbook.
expression.DeleteNumberFormat (NumberFormat)
expression A variable that represents a Workbook object.
Name | Required/Optional | Data type | Description |
---|---|---|---|
NumberFormat | Required | String | Names the number format to be deleted. |
This example deletes the number format "000-00-0000" from the active workbook.
ActiveWorkbook.DeleteNumberFormat("000-00-0000")
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.