Filtering in Excel Macro

austinandrei

Board Regular
Joined
Jun 7, 2014
Messages
117
Hi,
I have an excel data wherein there are list in Column A that needs to be filtered then copy in a new sheet.
It will start with the first item then all data will be copied to a new sheet then save to a folder and then the macro will go to the second item then all data will be copied to a another sheet and so on.
There is a limit to how many items the excel filter can show and this macro should take all values.

austin
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Here's the sample file:

Serial NumberItemSettled date PiecesCurrency
899816115-08-2014 100USD
899688215-08-2014 100USD
899559315-08-2014 100USD
899559415-08-2014 100USD
899559515-08-2014 100USD
8957041515-08-2014 100USD
8953821615-08-2014 100USD
8949521715-08-2014 100USD
8923001815-08-2014 100USD
8849001915-08-2014 100USD

<colgroup><col><col><col><col><col></colgroup><tbody>
</tbody>

First filter will be like this then copy all data and paste to the sheet next to it:

Serial NumberItemSettled date PiecesCurrency
8849001915-08-2014 100USD

<colgroup><col><col><col><col><col></colgroup><tbody>
</tbody>
 
Upvote 0
Hmm.. I think I know now how to get things done by using a separate sheet to list all unique data in Column A and use it as variant. Thanks
 
Upvote 0

Forum statistics

Threads
1,213,514
Messages
6,114,078
Members
448,547
Latest member
arndtea

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