Thanks watersev,
The code works great for the example sheet. I have adjusted the layout slightly on sheet1 which means that the terms "product 1", "product 2", "product 3" now fall above and below the product data tables as well as heading each table. This means that the macro misses the table out when searching for the matching terms.
Is there a way to adjust the code to search from the first column along (i.e. left to right) rather than top to bottom (which it appears to be doing now). I've tried to tweak the code but my limited knowledge is making the task that bit harder!
I presume this is the line which needs adjusting but don't know what needs tweaking
:
I've attached a copy of the spreadsheet so you can see my explaination a bit better. One table will sit above the product tables and one below; each with the product names in them. This appears to be causing a problem with the macro.
ExampleSheet(11).xls
Thanks in advance.
Bookmarks