View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Charlie Charlie is offline
external usenet poster
 
Posts: 703
Default Finding every instance of a value in a multi-sheet workbook

That's probably as good a method as any. Someone may have a better way.

"Maury Markowitz" wrote:

I need to find every occurrence of a unique ID in a multi-sheet
workbook.

I have already implemented this in code simply by looping over the
sheets, finding the column (it can potentially move from sheet to
sheet, but doesn't yet), and then looping over that column to find the
row numbers and put them in an array.

But now I'm thinking that this might not be the best way to do this,
and some sort of Find would be more efficient. I've never seen
anything like this though, a variation of Find that returns a single
"something" with all of the hits in it.

Any ideas?

Maury