Application.FixedDecimalPlaces Property (Excel)

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Returns or sets the number of fixed decimal places used when the FixedDecimal property is set to True. Read/write Long.

expression .FixedDecimalPlaces

expression A variable that represents an Application object.

This example sets the FixedDecimal property to True and then sets the FixedDecimalPlaces property to 4. Entering "30000" after running this example produces "3" on the worksheet, and entering "12500" produces "1.25."

Application.FixedDecimal = True 
Application.FixedDecimalPlaces = 4
Show: