MackMan
Registered User.
- Local time
- Today, 11:32
- Joined
- Nov 25, 2014
- Messages
- 174
Here's a question for the experts.
How do you write complex nested IF THEN ELSE END IF statements, so you don't get mixed up or confused with what happens first, next, last and so on.
I'm trying to write just this, and I'd like to try to figure this out for myself.
How do you start?
How do you know what IF statement to put first?
Then how would you know where to put ELSE, or END IF?
Before you start with the VBA, what are the foundations for making it work successfully, know where you are, know where to put END IF etc?
I've seen many times when using VBA people set up an initial foundation for writing code. For example when needing to put something in quotes, they do "" then enter the text in between, so they don't get errors on running (A very simple, crude example I know, but is there a similar basis for nested IFs)
I was just wondering how it's done right, first time?
How do you write complex nested IF THEN ELSE END IF statements, so you don't get mixed up or confused with what happens first, next, last and so on.
I'm trying to write just this, and I'd like to try to figure this out for myself.
How do you start?
How do you know what IF statement to put first?
Then how would you know where to put ELSE, or END IF?
Before you start with the VBA, what are the foundations for making it work successfully, know where you are, know where to put END IF etc?
I've seen many times when using VBA people set up an initial foundation for writing code. For example when needing to put something in quotes, they do "" then enter the text in between, so they don't get errors on running (A very simple, crude example I know, but is there a similar basis for nested IFs)
I was just wondering how it's done right, first time?