AutoFilterMode not working for table returned by query

mfleuette1

New Member
Joined
Jul 1, 2013
Messages
4
Hi - first post here in a long time, and could not find a related topic thru search. The problem I am trying to solve is turning off all filters on a table of data returned by MS Query (many columns, one or more of which may have a filter). However, ActiveWorksheet.AutoFilterMode and Active WorkSheet.FilterMode both return FALSE, even though the query is returned with filters and I have filtered one or more columns. How can I turn off active filters on the rows returned by the query (e.g. ShowAllData), without removing all filters? (AND ON A SIDE NOTE - how do you punctuate a forum post - carriage returns, etc.?)
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Assuming a version of Excel later than 2003 you probably have a Listobject in which case:
Code:
Activesheet.Listobjects(1).Autofilter.ShowAllData
for example.
 
Upvote 0

Forum statistics

Threads
1,214,642
Messages
6,120,698
Members
448,979
Latest member
DET4492

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