LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Orderly Validation Against Separate Ranges


Reply was made to your thread on MrExcell....
one way

Code
-------------------

Dim MyCell, MyRng, i As Integer, flg As Boolean

MyCell = Array("C9","C10","C11")
MyRng = Array("A1:A5","B1:B6","C1:C7")

For i = 0 To UBound(MyCell)
If Application.CountIf(Range(MyRng(i)),Range(MyCell(i )).VAlue) = 0 Then
flg = True
Exit For
End If
Next
If flg Then
MsgBox "Check the value in cell " & MyCell(i)
End I
-------------------

--
jindo
-----------------------------------------------------------------------
jindon's Profile: http://www.excelforum.com/member.php...fo&userid=1313
View this thread: http://www.excelforum.com/showthread.php?threadid=55070

 
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
Named ranges prints on separate pages Don Rowley Excel Discussion (Misc queries) 0 January 4th 08 06:15 PM
Data validation: concatenate two separate ranges in the List? DaveO[_2_] Excel Discussion (Misc queries) 3 March 21st 07 06:36 PM
Can I re-number Excel Form Label Controls for orderly tabbing. Linda Excel Worksheet Functions 0 June 28th 06 04:54 PM
Separate data into 2 output ranges dkenebre[_10_] Excel Programming 0 August 13th 05 09:50 PM
how to select two separate ranges into range object Serge[_2_] Excel Programming 2 October 1st 03 03:10 PM


All times are GMT +1. The time now is 07:15 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"