ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   FilterMode does not work? Excel 2003/XML (https://www.excelbanter.com/excel-programming/401019-filtermode-does-not-work-excel-2003-xml.html)

Fod

FilterMode does not work? Excel 2003/XML
 
Hi,

I've imported an XML file into Excel. A list is generated on one of the sheets
with auto-filter (which seems to work - both directly and from a VB macro
lists has an auto-filter, based on the column headers.
I'm trying to write code that will reset the auto filter, so it will display
all records, without success.

However, the filtermode property for the worksheet returns false; even the
following code taken from this list does not seem to reset that autofilter.

On Error Resume Next

For Each wb In Application.Workbooks
For Each sh In wb.Worksheets
sh.ShowAllData
Next
Next

On Error GoTo 0


All times are GMT +1. The time now is 02:47 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com