Hi Myles,
I found it a bit perplexing though why passing the cell range (c in
the example) as an argument works hitch-free but passing a sheet object
(sh as in my example) throws up error message.
If there is an underlying reason why this is so it would be interesting
to know.
The sheet does not have a ColorIndex property and, in any case, it is the
range that you wish to colour.
---
Regards,
Norman
"Myles" wrote in
message ...
Hi Norman,
Many Thanks again. Great solution!
I found it a bit perplexing though why passing the cell range (c in
the example) as an argument works hitch-free but passing a sheet object
(sh as in my example) throws up error message.
If there is an underlying reason why this is so it would be interesting
to know.
Myles
--
Myles
------------------------------------------------------------------------
Myles's Profile:
http://www.excelforum.com/member.php...o&userid=28746
View this thread: http://www.excelforum.com/showthread...hreadid=496613