I'm trying to manipulate this UDF so the output shows the decimal values out to the hundredths place. Notice that the sum in cell G2 should read 30.50 (or 30.5) but its dropping the decimals. I've tried function CDbl and CCur, but doesn't seem to change output.
Asked
Active
Viewed 103 times
0
-
Just noticed, Change Dim total as long to a double. – Sorceri Jul 07 '17 at 20:58
-
no need too as I should have caught that the first time, my bad! – Sorceri Jul 07 '17 at 21:06
-
next time, please post the code here instead of showing it in an image – Gowtham Shiva Jul 08 '17 at 14:23
-
I will do that when I get back to my computer. – Devil07 Jul 08 '17 at 14:45