Display & Loop through all AutoFilter Criteria

Aditya6412

New Member
Joined
Sep 15, 2014
Messages
1
Hello,

I came across a thread on looping through all the AutoFilter criteria for a mentioned column in VBA but wasn't able to comprehend how the code worked (http://www.mrexcel.com/forum/excel-...ria-copy-cell-results-into-another-sheet.html). I hope you guys can help me as I'm working on a very similar process. (Relatively new to VBA)

I'm mentioning the steps I would like to accomplish with the macro.

Step 1 - Data (10 column wide) is copied from Sheets("DG") and pasted in Sheets("Calculations") - *Accomplished this
Step 2 - Apply AutoFilter to all columns - *Accomplished this
Step 3 - Loop through all AutoFilter (referred to as AF henceforth) criteria in column 7 and extract results for each criteria to Sheets("Results")

Step 3.1 - Apply AF to column 7 and copy and paste all available filter criteria in another part of the sheet (Say column 12 - Just for reference)

Step 3.2 - For first AF criteria, copy values in column 8 and paste in results sheet

Step 3.3 - Then apply second AF criteria and copy column 8 and paste in results sheet (offset (0,1))
Repeat process for all remaining criteria.

Thanks in advance guys. Hope my request is clear.

Cheers,

Adi
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.

Forum statistics

Threads
1,190,587
Messages
5,981,799
Members
439,735
Latest member
Tony_P

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
Top