Hi all,
Using Excel 365.
My snippet is throwing an error here
If lo.FilterMode Then
Not sure why that is?
Thanks
-w
Full snippet:
Sub ShowAll_Lists()
Dim wb As Workbook
Dim ws As Worksheet
Dim lo As ListObject
Set wb = ThisWorkbook
For Each ws In wb.Worksheets
For Each lo In...
I'm trying to write code to get filtering information for a worksheet. There are, of course, two possibilities:
After auto-filtering with the drop-down arrows, WS.AutoFilterMode is True, and I can enumerate the AutoFilter.Filters collection.
After an Advanced-Filter operation, WS.FilterMode is...
Preamble:
As with one of my previous posts, this has turned from a question into a tip, as I think I just found the answer while posting!
(I'm using Excel 2003 today at home; but have not yet tested it on 2002, which I have at work).
Scenario:
I have a Worksheet with Autofilter enabled. It...
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.