+ Reply to Thread
Results 1 to 4 of 4

Automatically change fill color on certain cells depending on color of specific cell

  1. #1
    Registered User
    Join Date
    07-08-2010
    Location
    canada
    MS-Off Ver
    Excel 2007
    Posts
    6

    Automatically change fill color on certain cells depending on color of specific cell

    Hi everyone,

    I have a tedious task of highlighting and changing the fill color of certain cells. There is a specific pattern that needs to be changed everytime.

    Since the color is always consistant throughout the certain cells, I would like to make 1 cell be the master cell and every other cell in my pattern copy the color fill of the master.
    Therefor if I change the color of the master cell, every other cell in the pattern would automatically change itself to the same fill color.

    Would there be a general solution to this with an equation or would it involve writing a macro for it.


    Thanks in advance

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Automatically change fill color on certain cells depending on color of specific c

    Both a formula approach (conditional formatting) and a macro could do this. You will have to provide a sample workbook fully demonstrating your need to get a reasonable answer with either method.


    ========
    EDIT: Actually, formulas can't analyze colors, so most likely only a macro will do.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    07-08-2010
    Location
    canada
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Automatically change fill color on certain cells depending on color of specific c

    I figured as much, heres a sample if anyone has any workarounds for my problem.
    Attached Files Attached Files

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Automatically change fill color on certain cells depending on color of specific c

    This is the best I can offer...color changes in a cell don't actually trigger a ws_change event...I have no idea why, a lacking in Excel I suppose. So, this will trigger the color match when you move to another cell.

    Put this macro into the SHEET MODULE for Sheet1 and it will work automatically:
    Please Login or Register  to view this content.

+ 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