View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Paul D Smith Paul D Smith is offline
external usenet poster
 
Posts: 5
Default Identify adjacency cells with same value

....snip...

That would certainly work but I was hoping to be able to avoid VBA loops if
possible as I find them generally slow. My problem is slightly simpler than
your general solution in that I know that:

1. I know the rows affected
2. All rows have data
3. All rows with identical data will be adjacent.

Currently I use a loop which keeps walking the rows whilst the row data
equals that in the first row (and then logically move the first row forward
when I find a mismatch) but I was hoping there was a more elegant solution.

Paul DS