
Originally Posted by
andr3w266
Hello all
i've got an excel (2003) worksheet with data pulling from an SQL database. in one of the columns (D), the cells can only have 1 of 4 numerical values (1, 2, 3, 301).
when the data is refreshed, i want the cells in this column ONLY (column D) to change to a set colour depending on this numerical value.
so eg if the value in D1 is "1" the cell should be red, if in D2 its "301", the cell goes green etc.
I've tried some vb to do this, but it seems to consider values in all cells in the whole sheet(eg if there's a "3" in cell A7, it changes colour), and change colours of every cell, but i only want it to consider one column, with 4 values, and only fill the cells in that 1 column
any help would be great
Bookmarks