 |
How to Stop a Loop in VBA | eHow
Use an "Exit" statement in your VBA loop. Here is an example of the "Exit" statement being used in a "For" loop. Dim indexA, indexB For indexA = 1 to 2 For indexB = 1 to 100 If indexB > 5 Then Exit For End If document.write (indexB & " ") Next Next
www.ehow.com |
 |