In BASIC I could write something like

For x = 1 to 3
If x=2 then next x (or goto line number of above code)
print x+" is an odd number."
next x

vba does not seem to recognise the "next x" when in the if nest though.


How do I get around this? I can do x=x+1 because some of the exceptions are consecutive and will not be caught when together (unlike my even number example).

Thanks.