Hi,
Is this possible in VBA?
For a = 1 To 10 and 15 To 20 Next a
Hi,
Is this possible in VBA?
For a = 1 To 10 and 15 To 20 Next a
Not quite, however
For a = 1 To 20 If a < 11 Or a > 14 Then 'do stuff End If Next a
Graham Mayor - MS MVP (Word) 2002-2019
Visit my web site for more programming tips and ready made processes
http://www.gmayor.com
Another possible way that might do what you want:
for a = 1 to 10 for b= 15 to 20 step 1 ' do stuff with a and b indices next b next a
Thank u both