I have a spreadsheet which has autofilter on. I have a macro which selects certains areas (using autofilter) and copies them to another sheet.
The trouble arises if some filters are left on but users, then obviously it just adds more filters and copies what's left across. I have a simple loop which goes through and sets all the filters to show all. The trouble is that this loop takes forever to run and that particular loop runs twice. With that loop in place the macro takes just over 5 minutes to run, if I comment it out the rest of the code takes 15 seconds to run.
Is there any way to detect what the autofilter status is for a column and then only change its state if it's set to filter?
Any help would be appreciated.
Cheers,
Rob
Bookmarks