I should probably know better, but I asked anyway. What is the recommended method of eixting a top levef For Each loop when a condition is met in a nested For Each loop:
[VBA]Sub ScratchMacro()
Dim i As Long
Dim j As Long
Dim k As Long
Dim l As Long
Dim m As Long
i = 0
For j = 1 To 10
For k = 1 To 10
For l = 1 To 10
For m = 1 To 10
i = i + 1
If i = 1000 Then Exit For 'I want to exit "all" For loops.
Next m
Next l
Next k
Next j
MsgBox i
End Sub[/VBA]
Thanks.