Change cell colour to red
John,
It#s easier to use conditional formatting. Select B2 the drag top select all
your range of B1 - j10 then
Format|Conditional format
Formula is
=B2=""
Pick a colour
OK
Mike
"John" wrote:
Hi Everyone
I've got a grid , 81 cells with numbers in random cells.
I would like a macro to format the empty cells only, in red.
As you can see, I don't know much about macro except the recorder.
Just a start::
Sub Change2Red()
'
' Change2Red Macro
' Macro recorded 25/11/2008 by
' Range("B2:J10").Select
if cell is blank ?????
Selection.Font.ColorIndex = 3
End Sub
Thanking you in advance,
Regards
John
There is no failure except in no longer trying.
by: Elbert Hubbard
|