VBA to Change cell colors based on several factors/worksheet

  • Hi -


    I'm looking to automate a process, but, am a newbie to VBA. In worksheet one I'm trying to create a "tracker" which will have grey cells and white cells based on decisions (worksheet 1). All decisions have been pulled and put into a pivot table (worksheet 2).


    The keys I'm thinking to help with this process are matching of the clients name on worksheet 1 which are C5:CE5. Clients name are also listed in worksheet 2 A12:A55.


    The other key and this is where I'm having the most challenge is on metallic levels. For worksheet 1 this information is found A6:A340 which lists out various metallics (xyz bronze, or zzz platinum alt). For worksheet 2 this information has been provided as a "sum" with B11:I11 listing metallic and B12:I55 proving a "1" if the metallic is selected or blank if it has not been selected.


    If a client elected a certain metallic the cell should stay white. If it was not elected the cell should be gray. Attached is sample along w/a tab on how it should look when completed. Appreciate any help you can provide to help me get started.


    The only options that can be chosen are:
    Bronze
    Bronze Plus
    Bronze Alt
    Bronze Plus Alt
    Silver
    Silver Alt I
    Silver Alt II
    Platinum
    Platinum Alt


    Thanks again in advanced.

  • Re: VBA to Change cell colors based on several factors/worksheet


    Sorry, but the sample is not making a lot of sense. "clients name on worksheet 1 which are C5:CE5. Clients name are also listed in worksheet 2 A12:A55." - Both of these areas are completely blank.


    Not sure what you mean by "matching", do you want "1"s to automatically appear on sheet2 when (something I don't understand) is done on sheet1? this should be pretty simple.
    Metallic levels - A6:A340 -well, we have info in A6-A29, so this is a start. Not sure how this relates to b11:i11 though. There are a variety of "metallics" that are not present in the second range.


    "If a client elected a certain metallic the cell should stay white" wut? what cell, where, why.


    "Attached is sample along w/a tab on how it should look when completed" I don't understand why there are multiple white empty cells. I don't understand how this relates to sheet2 (if it relates to sheet2). I don't understand why there are "Transferred to client"s in column C and G, but not D, E or F, I don't understand why there are no "Updated Versions" or " No enrolments"


    In short, I don't understand what you are trying to accomplish

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!