|
-
Apr 14th, 2009, 04:48 PM
#1
Thread Starter
New Member
[RESOLVED] How to force Next before end?
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|