Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Which of these should break out of a For Next Loop when x = 1?
I think I'm getting the same action either way. I want it to break when x = 1 and skip the rest of the For/Next x = 0 Do While x = 0 For i = 1 to 10 If val1 = val2 Then x = 1 End If Next i Loop x = 0 Do Until x = 1 For i = 1 to 10 If val1 = val2 Then x = 1 End If Next i Loop |