C
Chris Watts
I have cells that contains a mixture of black and red text.
Other cells contain either only black or only red text.
I wish to (a) selectively locate the cells with mixed-colour text and then
(b) change the red text to bold black text. leaving any original black text
as unbold.
I have got as far as the stage of trying to detect these cells. When I use:
Cells(i, j).Select
iColour = Selection.Font.ColorIndex
Valid indexes are returned for only black or only red text contaiing cells.
But I get Invalid use of "Null" as an error message on the mixed cells. .
Can sks please suggest a solution to the two parts of this problem.
I amusing Excel 2007, under Windows XP Professional, and am using VBA.
cheers
Chris
Other cells contain either only black or only red text.
I wish to (a) selectively locate the cells with mixed-colour text and then
(b) change the red text to bold black text. leaving any original black text
as unbold.
I have got as far as the stage of trying to detect these cells. When I use:
Cells(i, j).Select
iColour = Selection.Font.ColorIndex
Valid indexes are returned for only black or only red text contaiing cells.
But I get Invalid use of "Null" as an error message on the mixed cells. .
Can sks please suggest a solution to the two parts of this problem.
I amusing Excel 2007, under Windows XP Professional, and am using VBA.
cheers
Chris