chuckjitsu
New Member
- Joined
- Apr 24, 2015
- Messages
- 48
- Office Version
- 365
- 2016
Hello. I searched here for an answer and found that setting a Boolean value to trigger the exit seemed the best way to go. That said, I wasn't quite sure of the mechanics/syntax of it. Given the dummy code below, how would I use a Boolean to exit the var3 For Each if a condition is met and return to the var1 For Each? (I just used ellipses instead of writing out the entire For Each piece)
VBA Code:
Sub grot()
For Each var1 in...
For each var2 in...
For each var3 in...
Next var3
Next var2
Next var1
End Sub