how to correct a number to 2 decimal places in vba

The solution for “how to correct a number to 2 decimal places in vba” can be found here. The following code will assist you in solving the problem.

Sub rounding()
ActiveCell.Select Selection.Value = Format(ActiveCell, “#.00”)
End Sub

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

Similar Posts