How do i get the following
with range a3 to aa & lastrow
if any cells are blank give them a green background
??
How do i get the following
with range a3 to aa & lastrow
if any cells are blank give them a green background
??
Just use conditional formatting.
____________________________________________
Nihil simul inventum est et perfectum
Abusus non tollit usum
Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
James Thurber
If you really want a VBA solution:
[VBA]Sub Blank_Colour()
Dim Rng As Range
Set Rng = Range("A3:AA" & Range("AA" & Rows.Count).End(xlUp).Row)
With Rng.SpecialCells(xlCellTypeBlanks)
.Interior.ColorIndex = 4
End With
End Sub[/VBA]
Regards,
Simon
Please read this before cross posting!
In the unlikely event you didn't get your answer here try Microsoft Office Discussion @ The Code Cage
If I have seen further it is by standing on the shoulders of giants.
Isaac Newton, Letter to Robert Hooke, February 5, 1675 English mathematician & physicist (1642 - 1727)
Thanks works a treat