Hi
I am new to VBA's and created a VBA to calculate the highlighted cells in each specific column (see picture below).
The VBA worked but instead of returning the exact number with 2 decimal places, it returned a whole number.
see cell W47 and cell W48 both show 2 decimal places but are rounded up as whole numbers.
Cell W45 = $400,777.03 but returns $400,777.00
I want to display the exact number with 2 decimal places as currency, not a rounded up number.
I read multiple forums and they spoke about using a double instead of an integer in the VBA, which I did, but the result is still rounding to a whole number.
Being a beginner in VBA, I read forums with VBA codes to convert the rounded number to a number with 2 decimal places, but wasn't sure if I need to add this code to the existing VBA module or create a new module.
I appreciate you help in advanced.

Below is the code I wrote in VBA
Function SumColor(Color As Range, Range As Range) As Long
Dim Cell As Range
Dim ColorIndexNumber As Integer
Dim ColorSum
'Get The Color Index
ColorIndexNumber = Color.Interior.ColorIndex
'For each cell we highlighted
For Each Cell In Range
If Cell.Interior.ColorIndex = ColorIndexNumber Then
ColorSum = WorksheetFunction.Sum(Cell.Value) + ColorSum
End If
Next Cell
SumColor = ColorSum
End Function

I have added the workbook to onedrive but noticed, that when I open the onedrive folder it returns an error NAME? and not the actual result. Not sure if this a onedrive problem, but the file was saved as a macro enabled worksheet. I am only starting on macros
and would appreciate any help you can offer as forums and videos are not specific when trying to solve issues.
See link below
http://1drv.ms/1MHSYHA
Regards
Frank