Deleting contents of cells in non contiguous ranges
If they are always the same cells, surely the colour is irrelevant. Couldn't
you just use
range("B30:X50,B70:X90,B130:X150").ClearContents
--
HTH
Bob Phillips
(remove nothere from email address if mailing direct)
"Richard Buttrey" wrote in
message ...
On Fri, 31 Mar 2006 16:40:54 +0100, "Bob Phillips"
wrote:
If you don't know in advance which cells are coloured, there seems to be
no
alternative (TINA - shiver!)
Sorry Bob,
Maybe didnt explain that well enough.
The one consistent thing about these ranges is that they always go
from Col B to Col X and always have the same number of rows - say 20.
Those cells are always coloured and the macro tests for the colour.
I was thinking that perhaps building a union of all these cells, and
then deleting contents in that range object all in one hit might be
preferable than doing each cell in turn.
Is there any way of selecting all cells of a specific colour in a
worksheet? There doesn't appear to be an F5 Special Cells Colour
option which would be an obvious choice.
Regards
__
Richard Buttrey
Grappenhall, Cheshire, UK
__________________________
|