+ Reply to Thread
Results 1 to 6 of 6

Color changing: change the color of one cell, and have other cells change colors too

  1. #1
    Registered User
    Join Date
    07-12-2019
    Location
    Rock Hill, South Carolina
    MS-Off Ver
    Office 365
    Posts
    29

    Color changing: change the color of one cell, and have other cells change colors too

    Hi everyone!

    What I am trying to do is an event I think.

    Here is what I would like to happen:

    If I change the color of a cell in Column F, then the cells after it will turn to another color.
    EX. Cell F21 is changed to red, so then G21, H21, I21, and J21 turn to grey.

    I'd like to be able to apply it to the whole column. So that If I change any of the cells in Column F to red, the corresponding cells in G, H, I, and J will change to grey.

    Can anyone help me out with this???


    Thanks!
    Last edited by hadydea; 07-17-2019 at 02:33 PM.

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: Color changing: change the color of one cell, and have other cells change colors too

    An event macro such as a Worksheet_Change event will be triggered only if the cell value is changed not the color. A macro that you could run manually could do what you want.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Registered User
    Join Date
    07-12-2019
    Location
    Rock Hill, South Carolina
    MS-Off Ver
    Office 365
    Posts
    29

    Re: Color changing: change the color of one cell, and have other cells change colors too

    Any suggestions on the macro language? I am still new at writing VBA and what not.

  4. #4
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: Color changing: change the color of one cell, and have other cells change colors too

    Is it only row 21 that is affected or is it multiple rows? If multiple rows, what are the rows? It would be easier to help if you could attach a copy of your file. Explain in detail what you want to do referring to specific cells, rows, columns and sheets using a few examples from your data.

  5. #5
    Registered User
    Join Date
    07-12-2019
    Location
    Rock Hill, South Carolina
    MS-Off Ver
    Office 365
    Posts
    29

    Re: Color changing: change the color of one cell, and have other cells change colors too

    Mumps1,

    I ended up figuring it out with a lot of trial and error!

  6. #6
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: Color changing: change the color of one cell, and have other cells change colors too

    Glad it worked out. Could you please post your solution?

+ 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. change cell color only if that cells font color is black and it's value is < 2000
    By randall78 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 02-05-2019, 05:23 PM
  2. [SOLVED] Need to change cell color based off of RGB Color being defined in 3 cells
    By Chris McGlothen in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-01-2017, 02:13 PM
  3. [SOLVED] change fill color of a range of cells based on color of a cell?
    By DarMelNel in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-20-2014, 04:48 PM
  4. [SOLVED] Formatting cells to change color by date (cell value) three diffrent colors???
    By johnoes in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-19-2013, 12:12 PM
  5. Replies: 6
    Last Post: 02-16-2013, 05:12 AM
  6. Macro to change cell border colors from one color to another
    By Hanskubansku in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-13-2012, 07:41 AM
  7. Replies: 3
    Last Post: 07-08-2010, 06:48 PM

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