Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 50151

[SOLVED] Using For..Each and Find to search for an item

$
0
0
Hi,

I have a named range of cells to search. It's called StdEng, and is about 60K cells

I'm none too clear about the syntax of the For Each loop, or Find.

What I need to do is search through looking for a match for 'SearchItem'

1. It needs to search by columns (because a match is most likely to be in the first column).

2. The match must be whole word match only (case insensitive).

3. If a match is found, I need to know what cell it was found in, to pull out info from other cells in the same row.

If there is a match, there will only be one, so it can stop searching if one is found.

Also, it's likely that around half the cells could be empty, in case that makes a difference.

Any help much appreciated.

Once I see a version that works, then maybe I'll finally get my head around it!

Viewing all articles
Browse latest Browse all 50151

Trending Articles