mardi 25 avril 2017

VBA - if statement switch based on boolean

Is it possible to do something like the following in vba? Essentially I have many conditions in my if statement and I'm trying to make an if statement be based on some other criteria, and if that criteria is false, than I do not want that particular if statement to be a condition in the if statement.

if .... then
b = true
else
b = false
end if

if ... and ... *(b) then
....
end if 

Aucun commentaire:

Enregistrer un commentaire