SetNumericFormat Method

Sets the format of a numeric value.

Syntax

object.SetNumericFormat [vaWholeDigits], [vaDecimalDigits], [vaJustify]

Properties

The SetNumericFormat method syntax has these parts:

Part

Description

object

An object expression that evaluates to an object in the Applies To list.

aWholeDigits

Variant. (Optional) The number of whole digits to display.

aDecimalDigits

Variant. (Optional) The number of decimal digits to display.

aJustify

Variant. (Optional) The justification of the numeric value.
Valid entries:

0 – Left
1 – Center
2 – Right

 

Example

Applies To