D
Dan E
New to VBA, I'm struggling to do the following in a worksheet:-
For all the cells in the sheet;
Begin. If the cell.interior.colorindex is 1 (black) or 15 (light grey),
do nothing except move on to the next cell and go back to Begin.
If the cell value has anything other than 2 or 3 characters or letters,
do nothing except move on to the next cell and go back to Begin.
Otherwise, using Select Case, set the background color to an index
linked to a particular string in the value, except that if the 2-or-3
character value is not found in the case list, do not change the background
color.
Repeat until all the cells have been checked, then end.
I already have the Case part (except for the "do not change the background
color" bit), thanks to Gord Dibben. Any help very much appreciated...
TIA
Dan
For all the cells in the sheet;
Begin. If the cell.interior.colorindex is 1 (black) or 15 (light grey),
do nothing except move on to the next cell and go back to Begin.
If the cell value has anything other than 2 or 3 characters or letters,
do nothing except move on to the next cell and go back to Begin.
Otherwise, using Select Case, set the background color to an index
linked to a particular string in the value, except that if the 2-or-3
character value is not found in the case list, do not change the background
color.
Repeat until all the cells have been checked, then end.
I already have the Case part (except for the "do not change the background
color" bit), thanks to Gord Dibben. Any help very much appreciated...
TIA
Dan