by Captain Sensible » Mon Feb 02, 2015 7:02 pm
I don't use the sheet so no idea what it's doing, I can only guess totalProfit and totalTraded are being sent as 0 so totalProfit / totalTraded is throwing the error.
You could always bypass it with an IF
If totalTraded > 0 Then
Cells(r, 29).Value = Round((totalProfit / totalTraded) + 1, 2)
Else
Cells(r, 29).Value = " Something or other"
End If