NumberFormatLocal Property

Applies To

Range Object, Style Object.

Description

Returns or sets the format code for the object as a string, in the language of the user (not the language of the macro writer). Read-write.

Remarks

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

See Also

NumberFormat Property.

Example

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