Hi
I have the following code to transfer a selection of data from one worksheet ("All SAP Data") to another worksheet ("M&T Data only").
The "All SAP Data" has over 50k rows and 16 columns of data. Column 14 contains reference codes such as 6050, 6054, 6067, 6155 etc. (there are about 35 reference codes to select from).
I want to loop down each row of data in "All SAP Data" and if that row contains 6050 in column 14, transfer data in that row from columns 5, 7, 9, 10, 11, 12 and 14 to "M&T Data only".
Eventually, I will be wanting to select a number of reference codes, say 6050, 6067, 6155 etc. (up to 10) but for the time being I was testing this only for 6050.
The code I have is:
I get a type Subscript out of range error at this point:
Could someone point out why it's doing that please?
Bookmarks