JawaharPrem
Member
Hi All,
i need to updated mentioned slab for avg amt till the last coloum of data iam getting error in "loop" Please help on same.
i need to updated mentioned slab for avg amt till the last coloum of data iam getting error in "loop" Please help on same.
Code:
Sub slab_1()
Dim i As Integer
i = i + 1
Loop
For i = 1 To 10000
Exit For
Else
If (Cells(i, 40) <= 500) Then
Cells(i, 41) = "0-500"
Else
If (Cells(i, 40) <= 750) Then
Cells(i, 41) = "501-750"
Else
If (Cells(i, 40) <= 1000) Then
Cells(i, 41) = "751-1000"
Else
If (Cells(i, 40) > 1000) Then
Cells(i, 41) = "Grt 1K"
End If
End If
End If
End If
Next i
End Sub
Last edited by a moderator: