Quantcast
Viewing latest article 3
Browse Latest Browse All 3

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!


Viewing latest article 3
Browse Latest Browse All 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>