ws.autoFilter not working
See original GitHub issueThe docs mention the autoFilter option on a worksheet object. I attempted to enable it, but my worksheets still don’t open with autoFilter enabled.
ws.autoFilter = false
as well as ws.autoFilter = true
do nothing.
Does anyone know of a solution?
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Autofilter macro not working correctly | MrExcel Message Board
I need to have a vba macro to autofilter, then copy the results, without the header, to a different sheet. I have a...
Read more >What to do when autofilter in VBA returns no data?
The trick is to include the header row in the call to the SpecialCells . This will ensure that at least 1 row...
Read more >Range.AutoFilter method (Excel) - Microsoft Learn
Used with Criteria1 and Operator to construct compound criteria. Also used as single criteria on date fields filtering by date, month or year....
Read more >Excel Filters AutoFilter Macros - Contextures
This Workbook_Open macro checks for an AutoFilter on the sheet named Data. It turns on the AutoFilter, if one is not in place....
Read more >Excel VBA Autofilter: A Complete Guide with Examples
Note: I will cover this example (on filtering data based on a drop-down ... This simply means that if you can not see...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
0.18.9 completely settles auto filter issues.
https://docs.sheetjs.com/docs/csf/sheet#worksheet-object
ws["!autofilter"]
will be assigned when parsing and will be serialized. It will also rewrite the relevant defined names for Excel formats.The freeze options are set in the pane tag within the sheet views. In the XML it will appear right after the dimension tag, so https://github.com/SheetJS/js-xlsx/blob/master/bits/67_wsxml.js#L356 is probably the right place. I think something like this should take a parameter
!freezerow
in the worksheet: (warning: untested)It might be necessary to add a selection within the sheetview
<selection pane="bottomLeft" activeCell="A1" sqref="A1"/>
but I haven’t experimented yet.