-
Solved: How Does VBA Handle Multiple Conditions Within an If Statement
I am trying to figure out if VBA will exit an 'If' statement at the first sight of a 'false' condition when a few conditions are strung together using an 'And'.
My code looks like this:
If (test1 = true) And (test2 = true) Then
To me, if test1 = false I would think test2 condition would not even be checked. Seems like VBA is checking test1 and finding it false and still proceeding with test2.
Is there an option to make it stop doing that?
I know I can always nest If statements of course, but I still wanted to understand this a little better. Thanks guys.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules