I'm looking to sum many excel cells together with the following code but instead of adding the cells together it only appends the numbers and giving a huge number for example 8.71201E+37
instead of 1507. What else can I use? Thanks in advance!
Do While Cells(r + 1, 2) <> ""
tmp1 = Cells(r,5)
tmpTotal = tmpTotal + tmp1
Loop
instead of 1507. What else can I use? Thanks in advance!
Do While Cells(r + 1, 2) <> ""
tmp1 = Cells(r,5)
tmpTotal = tmpTotal + tmp1
Loop