Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a section in a procedure where I have put in words what I am trying to do. I have
a named range of unique text entries in a single column, about 16 values. What I am trying to do is identify if any of the range of cells being looped as below have any of the values in that range and then act acoordingly. I know I could probably use a hole range of case arguments but it seemsa sledgehammer to crack a nut. Is there a VBA function that can do this? I appreciate any help Set rng = Range("A15:A30") For n = 1 To 200 If (Cells(n, 18).value (is equal to any of the text values in rng ) Then Statements etc Kind Regards, Graham |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Finding text in a range | Excel Discussion (Misc queries) | |||
Finding text or part of a text inside the value cell | Excel Programming | |||
Finding text in a cell and returning a value based on that text | Excel Discussion (Misc queries) | |||
Functions- Finding and counting specified text in cell range | Excel Worksheet Functions | |||
Finding the Excat text in a range | Excel Programming |