+ Reply to Thread
Results 1 to 4 of 4

VBA: If cells in row colored x then x ...

  1. #1
    Registered User
    Join Date
    12-21-2012
    Location
    CO
    MS-Off Ver
    Excel 2007
    Posts
    7

    VBA: If cells in row colored x then x ...

    Hey guys, finishing up a project of mine and I'm needing some more VBA help. i've got the code below:

    Please Login or Register  to view this content.
    What im needing to do is to have the macro look at my variable range (Starting on column H going on to a user defined column) row by row and to add a "Final" column at the end of the dataset. Each cell in the final column will have content dependent on the Color of the cells in the dataset for each corresponding row. IE if row 2 has a single cell in it that is red, then my final cell will need to be red and state "DQ". Otherwise if any row has 1 or more yellow cells but NO RED cells then its final cell must be labeled "REVIEW" and be colored yellow. Furthermore if any row contains NO RED, NO YELLOW, and at least 2 GREEN, then it would need to result in a green QUALIFIED end result. I believe im on the right track with the code above but its not quite there.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,663

    Re: VBA: If cells in row colored x then x ...

    You should post a sample workbook so that code can be tested.
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    12-21-2012
    Location
    CO
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: VBA: If cells in row colored x then x ...

    Here you go. I've deleted a bunch of the data on the tabs due to its sensitivity but its not needed for the portion I'm needing help on. I'm needing the work done on the "Report" tab. Thanks in advance for any help.
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,663

    Re: VBA: If cells in row colored x then x ...

    Modified and tested with sample workbook with code in "Report" sheet module:
    Please Login or Register  to view this content.
    Last edited by protonLeah; 12-29-2012 at 07:28 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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