In my workbook, cells(9,3) = 39.66
The code below is returning facility_1 = 40.00
I need the code to return 39.66
I also attempted to use FormatNumber(cells(9,3),2), which also yielded 40 as a result.
Any suggestions would be greatly appreciated!
Sub SetDataCells()
Dim facility_1 As Integer
facility_1 = Format(Cells(9, 3), "fixed")
End Sub
The code below is returning facility_1 = 40.00
I need the code to return 39.66
I also attempted to use FormatNumber(cells(9,3),2), which also yielded 40 as a result.
Any suggestions would be greatly appreciated!
Sub SetDataCells()
Dim facility_1 As Integer
facility_1 = Format(Cells(9, 3), "fixed")
End Sub