Can I get some help with the syntax of the vbYesNo MsgBox? I have this right now,
For i = 1 To 10
If Not (cells(i,1).value = "0" OR cells(i,1).value = "30") Then
Range(cells(i, 1), cells(i, 1).End(xlToRight)).Select
ans = MsgBox("Do you want to delete this row?", vbYesNo)
If ans = vbYes Then
'I do something
Else
'I want to exit this the If and continue on the For loop
Exit If
End If
End If
Next i
I tried End If and Exit If but doesn't work. Can I get some help?