NumberFormat property (Excel Graph)

Returns or sets the format code for the object. Returns Null if the cells in the specified range don't all have the same number format. Read/write String for all objects, except for the Range object, which is read/write Variant.

Syntax

expression.NumberFormat

expression Required. An expression that returns one of the above objects.

Example

This example sets the number format for the data labels for series one.

myChart.SeriesCollection(1).DataLabels.NumberFormat = "General"

Support and feedback

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.