Macro to undo filters

  • Thread starter Thread starter Alan S
  • Start date Start date
A

Alan S

Hi Guys,

I need to write a macro that will undo all filters that
are currently on a worksheetsheet. Do I have to make
sure that all the filters are undone individually or is
there a way I can do all at the same time?

Thanks
Alan
 
Does undo mean remove the dropdown arrows?

activesheet.autofiltermode = false

Or just showall?

With Activesheet
If .AutoFilterMode Then
If .FilterMode Then
.ShowAllData
End If
End If
End With
 
In fact:

With ActiveSheet
If .FilterMode Then
.ShowAllData
End If
End With

will work, too.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top