D
dave
I'd like to be change the background colour of a cell(s) depending on
conditions in other cells. In pseudo code eg
if(R1C == 10) then R5C6 = colorThisCell(blue);
(Am using pseudo code as I'm just started learning VBA.)
I have Walkenbach's book "Power Prog VBA for Excel 2007" and in it is
a statement...
"FUNCTION procedures used in worksheets must be passive. For example,
code within a FUNCTION procedure cannot manipulate ranges or change
things on the worksheet."
Amazingly the example he goes on to give is exactly the task I'd like
to achieve (above)! So looks like is not do'able.
Is there some other way to achieve this colouring task?
thanks
conditions in other cells. In pseudo code eg
if(R1C == 10) then R5C6 = colorThisCell(blue);
(Am using pseudo code as I'm just started learning VBA.)
I have Walkenbach's book "Power Prog VBA for Excel 2007" and in it is
a statement...
"FUNCTION procedures used in worksheets must be passive. For example,
code within a FUNCTION procedure cannot manipulate ranges or change
things on the worksheet."
Amazingly the example he goes on to give is exactly the task I'd like
to achieve (above)! So looks like is not do'able.
Is there some other way to achieve this colouring task?
thanks