CyrusTheVirus
Well-known Member
- Joined
- Jan 28, 2015
- Messages
- 749
- Office Version
- 365
- Platform
- Windows
Hi everyone,
So I have the below code that clears the filter of every table within a workbook, but looking to modify it to only clear filters for all tables of the active sheet (not the whole workbook). How do I do that?
So I have the below code that clears the filter of every table within a workbook, but looking to modify it to only clear filters for all tables of the active sheet (not the whole workbook). How do I do that?
VBA Code:
Dim ws As Worksheet
Dim oList As ListObject
For Each ws In ActiveWorkbook.Worksheets
For Each oList In ws.ListObjects
oList.AutoFilter.ShowAllData
Next oList
Next ws