KishorKK
Member
Hi Friends,
when i am executing this one i'm getting error,
can some one explain me

when i am executing this one i'm getting error,
Code:
Sub loops_if2()
Dim marks As Integer
For marks = 1 To Range("myloopcount").Value
If Cells(marks + 1, "b").Value >= 40 Then
Cells(marks + 1, "c").Value = "Pass"
Else
Cells(marks + 1, "c").Value = "Fail"
End If
Next marks
End Sub

Last edited by a moderator: