+ Reply to Thread
Results 1 to 3 of 3

Change color from legend auto update on cells

  1. #1
    Registered User
    Join Date
    09-16-2019
    Location
    Italy
    MS-Off Ver
    2016
    Posts
    48

    Change color from legend auto update on cells

    Hello,

    i have a legend with some letters with their BG colors (see attachment). When i write one of that letters in a specific range of my sheet, this letters/cells Background color should auto update according to the legend.

    I would like also to have this option : when i update manually a color from legend, the letter background color should re-update according to the legend change.

    Thank you in advance.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,408

    Re: Change color from legend auto update on cells

    First off, your second request cannot be done inside of the Change event as changing a cell's color does not raise any trappable events. Since you only have 5 colors, your best bet would be to use Conditional Formatting on the range of cells you want this functionality to apply to. I assume that range is H1:H22 (the blank grayish colored cells in your example worksheet)... I will be using that assumption in the answer to your first request. Here is how I would write the change event code for your first request...
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    09-16-2019
    Location
    Italy
    MS-Off Ver
    2016
    Posts
    48

    Re: Change color from legend auto update on cells

    Thank you, works fine.

+ 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] Color changing: change the color of one cell, and have other cells change colors too
    By hadydea in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-17-2019, 04:51 PM
  2. Auto pre-populate cells with data from key/legend.
    By QueenMab in forum Excel General
    Replies: 1
    Last Post: 06-17-2015, 12:26 AM
  3. Replies: 2
    Last Post: 11-16-2012, 01:44 PM
  4. How do i auto fill cell color based on other cells' color?
    By Kchatza in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-22-2012, 05:00 AM
  5. Auto update legend?
    By gregoir in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 10-22-2010, 01:56 PM
  6. Formatting Graphs (auto-color update)
    By dreicer_Jarr in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-11-2008, 11:57 AM

Tags for this Thread

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