HI EVERYONE... I keep getting the error above and can't seem to figure out where my End If's are supposed to be. Please help. Mucho Gracias!!
sRow = 2
Range("a1").Select
If Range("a1").Offset(1, 0).Value <> "" Then
Selection.End(xlDown).Select
End If
eRow = ActiveCell.Row
For cnt = sRow To eRow
If Left(Range("a" & cnt).Value, 3) = "Buy" Or Left(Range("a" & cnt).Value, 4) = "Sell" _
Then Range("A" & cnt).Offset(0, 11).Value = (Range("A" & cnt).Offset(0, 3).Value / 1000000) * Range("A" & cnt).Offset(0, 5).Value
total = total + Range("A" & cnt).Offset(0, 11).Value
End If
If Left(Range("A" & cnt).Value, 5) = " t " Then Range("A" & cnt).Offset(0, 11).Value = total
End If
If Left(Range("A" & cnt).Value, 5) = " t " Then Range("A" & cnt).Offset(0, 12).Value = Range("A" & cnt).Offset(0, 11).Value _
/ (Range("A" & cnt).Offset(0, 3).Value / 1000000)
total = 0
If Left(Range("A" & cnt).Value, 5) = " t " Then Range("A" & cnt & ":" & "M" & cnt).Font.Bold = True
If Left(Range("A" & cnt).Value, 5) = " t " Then Range("A" & cnt & ":" & "M" & cnt).Interior.ColorIndex = 6
End If
Next cnt
End Sub