Hi Kenny! Try this...
Put the ff code for your worksheet (right-click on your sheet's tab, then click, 'View Code...'):
With the code above, if you type in any cell any of the texts 'Red', 'Yellow', 'Green', 'Blue', 'Black', 'Grey', or 'Purple' (case-insensitive), the color for that cell will change accordingly...
Originally Posted by
Kenny
I would like to have VB code that will test each cell in an entire column
(everytime the worksheet is recalculated, if that is not too time-consuming)
and fill the cell with a different color based upon the string in the cell.
The possible string values are Red, Yellow, Green, Blue, Black, Grey, Purple.
The fill color would correspond to the string value.
I can't seem to get the hang of it. Any help would be appreciated. Thanks in
advance to all the great contributors to this forum.
Bookmarks