Moving Rows of Data based on value in a column matching name of sheet

RExcel28

New Member
Joined
Mar 28, 2017
Messages
7
I am trying to move data in "Sheet 1" into newly created tabs.
These tabs are created and named based on a list of values. These can change once opening the workbook.
For example, we might create tabs A, B, C, D, E and the next day these tabs could be F, G, H, I, J.
Now, I want to move data in "Sheet 1" if the value in column "O" is the same as the name of the newly created tab.

So for example, I want all the rows copied from "Sheet 1" that contain value "B" in column "O" to be moved to the tab "B" and those that contain "C" to be moved to tab "C".

The names of these tabs are in a dynamic list. Currently, the workbook creates these tabs from this list that could be only 4 entries, or could be 25 entries in the list.

Is there a loop that we can run to move data to the appropriate tab if the value matches the name of the tab?

I do not have any current code, as anything I have tried using AutoFilter has not worked.

Thanks
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.

Forum statistics

Threads
1,223,891
Messages
6,175,229
Members
452,621
Latest member
Laura_PinksBTHFT

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