Results 1 to 27 of 27

Skip to next For loop based using If statement

Threaded View

  1. #1
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Thumbs up Skip to next For loop based using If statement

    If I have a loop like:

    For Each c in Range("Arbitrary")
    ....
    Next c
    What do I do if I set a criteria to the loop where if it is true, move onto the next c like this:

    For Each c in Range("Arbitrary")
    If c.Value = "*" Then ???
    ...Other code if not true
    Next C
    I've tried a couple of combinations like:

    ??? = Next C - doesn't work
    ??? = Next For - doesn't work

    I'm sure it can be done but I don't know the syntax.
    Last edited by Mordred; 08-13-2010 at 06:07 PM.
    If you're happy with someone's help, click that little star at the bottom left of their post to give them Reps.

    ---Keep on Coding in the Free World---

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1