Quantcast
Channel: VBA IF statement with multiple conditions - Stack Overflow
Viewing all articles
Browse latest Browse all 3

Answer by pheeper for VBA IF statement with multiple conditions

$
0
0

You could use Select Case. It would look something like this...

Sub test()    Select Case i        Case 1, 3, 7, 9, 10, 15, 16, 17, 18, 19, 20'do something    End SelectEnd Sub

Viewing all articles
Browse latest Browse all 3

Trending Articles



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