LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
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.

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Checking a range with IF Rob J Excel Discussion (Misc queries) 4 October 18th 06 05:44 PM
Checking range of cells for entry then checking for total Barb Reinhardt Excel Programming 1 October 13th 06 02:47 PM
Checking ALL values in a range nospaminlich Excel Discussion (Misc queries) 13 February 10th 05 09:29 AM
checking if a range has a name. Peter[_21_] Excel Programming 1 November 10th 04 01:05 AM
Checking range names Kenneth Brown Excel Programming 1 September 1st 04 02:22 PM


All times are GMT +1. The time now is 06:46 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"