Skip to content

Latest commit

 

History

History
41 lines (26 loc) · 1.16 KB

Excel.Range.NumberFormatLocal.md

File metadata and controls

41 lines (26 loc) · 1.16 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Range.NumberFormatLocal property (Excel)
vbaxl10.chm144168
vbaxl10.chm144168
Excel.Range.NumberFormatLocal
e34e6f52-9279-7961-adfa-4aa84c44937a
05/11/2019
medium

Range.NumberFormatLocal property (Excel)

Returns or sets a Variant value that represents the format code for the object as a string in the language of the user.

Syntax

expression.NumberFormatLocal

expression A variable that represents a Range object.

Remarks

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

For more information, see Number format codes (Microsoft Support).

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

[!includeSupport and feedback]