londonwalsall
New Member
- Joined
- Oct 3, 2011
- Messages
- 3
I have the following bit of code for changing the fill color of a shape to match that of a cell color. I thought it was working but when I revisited and modified the cell color to a dark red, I find the shape goes to light blue instead. The conditional formatting and cell references are all correct.
Selection.ShapeRange.Fill.ForeColor.RGB = Data.Cells(25,10).FormatConditions(cfValue).Interior.Color
Selection.ShapeRange.Fill.ForeColor.RGB = Data.Cells(25,10).FormatConditions(cfValue).Interior.Color