Hello
I have this code
Sub endturn()
that work fine
but i'd like to have the same thing to every line up to 100 without copying it 100 times
is there a way?
I have this code
Sub endturn()
If Sheets("condition").Range("k2").Value = True Then
Sheets("condition").Range("m2").Value = Sheets("condition").Range("m2").Value - 1
End If
If Sheets("condition").Range("k3").Value = True Then
Sheets("condition").Range("m3").Value = Sheets("condition").Range("m3").Value - 1
End If
If Sheets("condition").Range("k3").Value = True Then
Sheets("condition").Range("m3").Value = Sheets("condition").Range("m3").Value - 1
End If
End Sub
that work fine
but i'd like to have the same thing to every line up to 100 without copying it 100 times
is there a way?