GiraffetheGeek
Board Regular
- Joined
- May 25, 2011
- Messages
- 58
Hi all,
I have the following:
This works fine, but I want to extend it to IF r = any multiple of 11 up to 300.
Is there any way of doing this without manually typing r = 11 Or r = 22 etc.
Is there any limit to how many OR's VBA can check?
I have the following:
Code:
If r = 0 Or r = 11 Or r = 12 Then
r = r + 1
Else
r = r + 2
End If
This works fine, but I want to extend it to IF r = any multiple of 11 up to 300.
Is there any way of doing this without manually typing r = 11 Or r = 22 etc.
Is there any limit to how many OR's VBA can check?