CatyH
Board Regular
- Joined
- Jun 27, 2017
- Messages
- 84
- Office Version
- 365
I've read a few posts but none that answer the question for how to not display the decimal point:
Two scenarios: 100.3897364 and 102 should appear as:
100.39 and 102
but this format shows 100.39 and 102. (with the decimal).
How do I keep the decimal from appearing when a whole number?
.Range("I17").NumberFormat = "####0.##" --> 100.39 [happy with this]
.Range("I17").NumberFormat = "####0.##" --> 102. [do not want to display the .]
This is just for formatting - I do not want to change the actual values of the cells... thanks!
Two scenarios: 100.3897364 and 102 should appear as:
100.39 and 102
but this format shows 100.39 and 102. (with the decimal).
How do I keep the decimal from appearing when a whole number?
.Range("I17").NumberFormat = "####0.##" --> 100.39 [happy with this]
.Range("I17").NumberFormat = "####0.##" --> 102. [do not want to display the .]
This is just for formatting - I do not want to change the actual values of the cells... thanks!
Last edited: