View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
theo theo is offline
external usenet poster
 
Posts: 66
Default checking a range for at least one

I have code that will hi-light a cell if it is empty based on input in the
first cell:

For Each cll In Range("A:A")
If cll.Value = "A" Or cll.Value = "a" Then
If IsEmpty(cll.Offset(0, 1)) Then cll.Offset(0, 1).Interior.ColorIndex = 6 _
Else: cll.Offset(0, 1).Interior.ColorIndex = xlNone
End If

Now I still need to do:
For Each cll In Range("A:A")
If cll.Value = "A" Or cll.Value = "a" Then

but now I need to check to see if a range of cells are all null (at least
one of them
must NOT be null)

For example - if R:V and X are empty, then I want to hi-light R:V and X to
show that at least one of them must have data.

Any help is MUCH appreciated.