Unfilter a whole sheet

drop05

Active Member
Joined
Mar 23, 2021
Messages
285
Office Version
  1. 365
Platform
  1. Windows
I am trying to see if there is a way to unfilter a whole sheet, sheets that have tables and non table filters, check to see if there is a filter and if there is then unfilter the tab/sheet
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
I put this in my PERSONAL workbook in a standard module and then create a keyboard shortcut, Ctrl-Shift-A. It will unfilter all tables and ranges

VBA Code:
Sub ShowAllData()
  Dim tbl As ListObject
  Dim Sht As Worksheet
  Dim Cel As Range
  
  Set Sht = ActiveSheet
  Set Cel = ActiveCell
    
  On Error Resume Next
  ActiveSheet.ShowAllData
    
  For Each tbl In Sht.ListObjects
    tbl.HeaderRowRange.Select
    ActiveSheet.ShowAllData
  Next tbl
  On Error GoTo 0
  
  Cel.Select
End Sub
 
Upvote 0
try using ALT+A+C, this clears the filters for a table
 
Upvote 0

Forum statistics

Threads
1,215,347
Messages
6,124,421
Members
449,157
Latest member
mytux

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