NumberFormatLocal Property

Microsoft Excel Visual Basic

Show All

NumberFormatLocal Property

       

NumberFormatLocal property as it applies to the Style object.

Returns or sets the format code for the object as a string in the language of the user. Read/write String.

expression.NumberFormatLocal

expression   Required. An expression that returns a Style object.

NumberFormatLocal property as it applies to the CellFormat, DataLabel, DataLabels, Range, and TickLabels objects.

Returns or sets the format code for the object as a string in the language of the user. Read/write Variant.

expression.NumberFormatLocal

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

Remarks

The Format function uses different format code strings than do the NumberFormat and NumberFormatLocal properties.

Example

As it applies to the CellFormat, DataLabel, DataLabels, Range, and TickLabels objects.

This example displays the number format for cell A1 on Sheet1 in the language of the user.

MsgBox "The number format for cell A1 is " & _
    Worksheets("Sheet1").Range("A1").NumberFormatLocal