Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Range as array
Robert,
You can use the Match function to look directly in the cells. E.g., Dim Res As Variant Res = Application.Match(123, Range("G1:G1000"), 0) If IsError(Res) Then MsgBox "not found" Else MsgBox "found" End If -- Cordially, Chip Pearson Microsoft MVP - Excel www.cpearson.com "Robert" wrote in message ... I need to create a macro that will use a range G2:G1000 as an array then check a cell value to find out if it is in that array. Any help is appreciated Thank you in advance Robert |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
operating over a range in an array | Excel Discussion (Misc queries) | |||
How to fix an array or range | Excel Discussion (Misc queries) | |||
Array or range lookup per row? | Excel Worksheet Functions | |||
different formula for ROW, array / range? | Excel Discussion (Misc queries) | |||
how to reverse a range/array? | Excel Worksheet Functions |