I have a very huge while wend loop in my Excel VBA.
Earlier in the code I set a variable strMode
to True
or False
.
If it is False
then in my while condition I want to set
while var1 + var1previous > 1
and if it is True
while var1 + var1previous > 1 or var1previous+ var1 > 1
How can I do that, if I don't what to "double" the While-Wend code, for my If
statement?