largeselection
Active Member
- Joined
- Aug 4, 2008
- Messages
- 358
I'm trying to set the background color of a square shape based on the color in another cell (the background is not set by conditional formatting).
So I have in the beginning:
I'm trying to figure out what to put after the =.
I have a set of data and an index. So in my index table it says if the value is between 50-60, then it should be in the "MID" bucket. I can do a lookup in the worksheet (next to the data) by =lookup(cell, index ranges, labels).
So I was thinking I could say after the = the cell which satisfies the lookup.Interior.Color (since I added the background to the "labels").
This is not working.
Here's what I tried:
Thanks for any directions you can point me in
So I have in the beginning:
Code:
With Selection.ShapeRange.Fill
.Visible = msoTrue
.ForeColor.RGB =
I'm trying to figure out what to put after the =.
I have a set of data and an index. So in my index table it says if the value is between 50-60, then it should be in the "MID" bucket. I can do a lookup in the worksheet (next to the data) by =lookup(cell, index ranges, labels).
So I was thinking I could say after the = the cell which satisfies the lookup.Interior.Color (since I added the background to the "labels").
This is not working.
Here's what I tried:
Code:
.ForeColor.RGB = Range(Lookup(ActiveCell.Offset(0, 1).Value, Range("G28:G38"), Range("H28:H38")).Interior.Color
Thanks for any directions you can point me in