jjoy123123
Programmer
I'm trying to pass the value of varValue over to Excel. varValue is equal to 0.015 but Excel is reading it as 0.0149999996647239. The cell I'm populating in Excel is formatted as Number with 2 decimal places. Instead of showing .02, it is showing .01. Why is that?
Private Sub PopulateExcel(varValue As Variant)
oRange.Cells(1,2) = varValue
End Sub
Private Sub PopulateExcel(varValue As Variant)
oRange.Cells(1,2) = varValue
End Sub