Clear All Filters

PishoiNassif

New Member
Joined
Nov 28, 2023
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hello,

I need a loop VBA code to show all data from every worksheet on my workbook. The workbook is called Consolidated. I want to keep the filter so I can refilter later.

Also, can you help with a loop code to refilter every worksheet as well?

Thank you to anyone who can help me.
 

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)
If the code sits in the Consolidated workbook, then this will show all data:
VBA Code:
Sub ShowAll()
    Dim ws As Worksheet
    For Each ws In ThisWorkbook.Worksheets
        If ws.AutoFilterMode Then ws.AutoFilter.ShowAllData
    Next ws
End Sub

can you help with a loop code to refilter every worksheet as well?
If you provide more information, we can show you how to do that as well (filter by which column(s), by what criteria, what row does your data/headers lie in...)
 
Upvote 0

Forum statistics

Threads
1,223,627
Messages
6,173,425
Members
452,515
Latest member
Alicedonald9

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