Copying data from 2 sheets based on looping criteria

Mister_T

New Member
Joined
Jul 3, 2009
Messages
25
Hi All,

Hope you can help

In worksheet A I have a master list ie 26 rows, col A has a unique product code which is variable on amount of rows.

In worksheet B I have hundreds of rows of data, variable amount or rows for each unique product code in Col A.
What I wish to do is copy row 1 from WS A (first product code in to a new worksheet and then below it copy all rows from WS B and the loop through this process for all other product codes in WS A.
Hope this is clear, I have never done looping and my code otherwise is going to be huge!
Many thanks appreciate your help and time
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand

Forum statistics

Threads
1,224,568
Messages
6,179,595
Members
452,927
Latest member
whitfieldcraig

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top