filter loop

daveyc18

Well-known Member
Joined
Feb 11, 2013
Messages
707
Office Version
  1. 365
  2. 2010
i have a data set where column H ("inventory") has various inventory numbers stored as text (001, 009, 010, 037, etc.) ...tab is called "data"

i have an advanced filter set up in tab "filters":

"inventory"
037
047
084

i also have three separate tabs named 037, 047, 084

trying to make a macro where it'll loop through the advanced filter setup and copy and paste the data to their respective tabs

e.g.,

loop advanced filter --> first one is 037 --> filter column H ("inventory") in the "data" tab for 037 --> then copy and paste to tab 037
next one is 047 --> filter column H ("inventory") in the "data" tab for 047 --> then copy and paste to tab 047
next one is 084 --> filter column H ("inventory") in the "data" tab for 084 --> then copy and paste to tab 0484
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
It would be easier to help if you could use the XL2BB add-in (icon in the menu) to attach a screenshot (not a picture) of your sheet. Alternately, you could upload a copy of your file to a free site such as www.box.com or www.dropbox.com. Once you do that, mark it for 'Sharing' and you will be given a link to the file that you can post here. Explain in detail what you want to do referring to specific cells, rows, columns and sheets using a few examples from your data (de-sensitized if necessary).
 
Upvote 0
Are you using Excel 365 for this (you have both 365 and 2010 listed)?

If so, you can simply use the new FILTER function.
See here for more details and examples on how to use it: FILTER function - Microsoft Support
 
Upvote 0

Forum statistics

Threads
1,215,172
Messages
6,123,428
Members
449,099
Latest member
COOT

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