Hello forum, I'm trying to put together a macro that will run an autofilter on a range on another sheet, and return the filtered results to the sheet from which I ran the macro. So the same macro will work on all sheets without modifying the code for each sheet to reflect that sheet's name.
So I start out on sheet3 say,
then run the macro from sheet3,
it does an autofilter on sheet1 say, and copies the result back to what ever sheet I started from, in this case sheet3.
And the same macro would work if I started on sheet 20.
Thanks forum, I always appreciate your help.
edit: And the filter criteria is located in a cell on the sheets from which the macro is run and to which the data will be copied. So each sheet will have 1 cell each containing the filter criteria to use on the other sheet, or sheet 1 in this case.
So I start out on sheet3 say,
then run the macro from sheet3,
it does an autofilter on sheet1 say, and copies the result back to what ever sheet I started from, in this case sheet3.
And the same macro would work if I started on sheet 20.
Thanks forum, I always appreciate your help.
edit: And the filter criteria is located in a cell on the sheets from which the macro is run and to which the data will be copied. So each sheet will have 1 cell each containing the filter criteria to use on the other sheet, or sheet 1 in this case.
Last edited: