I have to look through every cell in the rows that start with ABCD for a certain Code,
If the Code is found, I copy the cell above and below and the cells in rows 2 & 3 of the same column to Sheet2
this builds a table on Sheet2 containing only the data relevant to the items Coded for what I need, like this:
DataW DataX DataZ DataY from perhaps D8
DataW DataX DataZ DataY from perhaps Z8
DataW DataX DataZ DataY from perhaps BB13
DataW DataX DataZ DataY from perhaps AG18
DataW DataX DataZ DataY from perhaps DH18
DataW DataX DataZ DataY from perhaps IV18
I just want to make the search of the rows starting with ABCD a variable so any new rows added will be included.
The Named Range idea seemd easier than embedding a loop inside a loop
For each cel in A:A that = ABCD search every cell in the row for the code.
I always run into trouble when I try to select inside of a selection!
Bookmarks