Skip to main content

Range.NumberFormatLocal property

Table of contents
  1. Syntax
  2. Remarks
  3. Example

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



expression A variable that represents a Range object.


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


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

Leave a comment

Your email address will not be published. Required fields are marked *

Format your code: <pre><code class="language-vba">place your code here</code></pre>