vendredi 2 mars 2018

VBA IF statement with multiple conditions

I have got an IF statement that looks like that:

If i=1 or i=3 or i=7 or i=9 or i=10 or i>=15 and i<=20 then
   'Do sth.
End If

My question is: Can I make these conditions easier (can I summarize them)?

Thanks in advance!

Aucun commentaire:

Enregistrer un commentaire