ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   find function not working with merged cells (https://www.excelbanter.com/excel-programming/437409-re-find-function-not-working-merged-cells.html)

Dave Peterson

find function not working with merged cells
 
Because merged cells are a real pain to work with.

I've seen routines that use simple find/findnext and compare with the first
address found (like VBA's help shows) go into endless loops because of the way
the find fails with merged cells.

Hydra wrote:

I'm using the find function to locate the column in which data is located.
Some of the columns have merged cells. Searching row wise the function finds
the first 8 targets and then skips over the ninth one, which is in merged
cell.

however it finds the target in column four, which is also a merged cell.

The find function is searching for values, not formulas and my target text I
"$".

Any reason why it is missing some targets?


--

Dave Peterson

Rob van Gelder

find function not working with merged cells
 
I agree. Merged cells are evil. It's often better to use Center Across Selection.


On 15-Dec-2009 11:51, Dave Peterson wrote:
Because merged cells are a real pain to work with.



All times are GMT +1. The time now is 09:05 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com