GreenyMcDuff
Active Member
- Joined
- Sep 20, 2010
- Messages
- 313
Hi guys,
Just looking for some information here out of curiosity and to expand my knowledge.
I use the If Not... Then Nothing statement a lot to set the true/false of a variable e.g:
Why is this code used this way round? is it not possible to say if variable exists then set the variable to true?
Just looking for some information here out of curiosity and to expand my knowledge.
I use the If Not... Then Nothing statement a lot to set the true/false of a variable e.g:
Code:
X = False
Set Xtinct = Range("1:1").Find("Status")
If Not Xtinct.EntireColumn.Find("Extinct") Is Nothing Then X = True
Why is this code used this way round? is it not possible to say if variable exists then set the variable to true?