+ Reply to Thread
Results 1 to 2 of 2

For every cell below ACTIVECELL meeting criteria, run a sub, then continue when its done

  1. #1
    Forum Contributor
    Join Date
    09-04-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    298

    For every cell below ACTIVECELL meeting criteria, run a sub, then continue when its done

    In plain English:

    dim MEMORIZEDCELL as string
    MEMORIZEDCELL = (the active selected cell)


    For each cell below MEMORIZEDCELL (but in the same column):

    If the cell contains Interior.Color = RGB(191, 191, 191)

    THEN end this procedure

    elseIf the cell is NOT blank

    THEN skip to the cell below it.

    elseIf the cell IS blank, select it and call sub "myothersub".


    Continue the "For Each" procedure above after "myothersub" is finished running
    Last edited by ks100; 07-01-2014 at 02:18 PM.

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: For every cell below ACTIVECELL meeting criteria, run a sub, then continue when its do

    Perhaps:

    Please Login or Register  to view this content.
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Assign Yes/No to Cell Based on Meeting Some Criteria
    By chicity26 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-25-2014, 10:39 AM
  2. Find a column reference for a cell meeting 2-dimensional criteria
    By crazytalker90 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 09-06-2013, 10:28 AM
  3. Vlookup a value if blank cell found after meeting two other criteria
    By markmac234 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-28-2007, 06:15 PM
  4. [SOLVED] Finding the corresponding cell of the first value meeting multiple criteria
    By DCPHOLD in forum Tips and Tutorials
    Replies: 7
    Last Post: 12-28-2006, 04:29 AM
  5. Replies: 0
    Last Post: 08-25-2005, 05:52 AM

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