I have 3 For statements. I have an If x = 2, I want the k For loop to Exit. But, instead the i For loop i[/quote]s being exited.
How can I Exit the k For loop?
Code:
For i = 1 to 4
For j = 1 tp 5
For k = 1 to 6
If x = 2 then
Exit For
End If
Next
Next
Next
How can I Exit the k For loop?