View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Dave Peterson[_3_] Dave Peterson[_3_] is offline
external usenet poster
 
Posts: 2,824
Default Cancelling AutoFilter in a macro

with activesheet
if .filtermode then
.showalldata
end if
end with

to show all the data.

Or

activesheet.autofiltermode = false
to remove all the dropdown arrows.

Floss wrote:

Hi,

Need help with macro code that will clear all of the active filter opions on the auto filter.
I tryied taking out the filter and putting back with instructions hoping that after taking it out, all prior filter choices would be wiped clean. But that doesnot seem to always work, as when the filter is reactivated (Application.AutoFilter) prior filters are still active.

Thank you in advance.
Floss


--

Dave Peterson