HI, I have tried both below options to either show all data or remove filters in preparation for the workbook to be reused but neither work.
On top of this I would like to clear contents in range A:W down to last entry on one sheet and a different range on another sheet.
Both are in tables but I want to leave the formulas in my helper columns so can't clear the contents of whole tables.
I would like to have a message pop up to say 'reset completed, move to step 2'
or something like this.
Many thanks in advance for any advice!
On top of this I would like to clear contents in range A:W down to last entry on one sheet and a different range on another sheet.
Both are in tables but I want to leave the formulas in my helper columns so can't clear the contents of whole tables.
Code:
Option Explicit
Sub RemoveAllFilters()
Dim Sht As Worksheet
For Each Sht In Worksheets
If Sht.AutoFilterMode = True Then
Debug.Print Sht.Name
Sht.AutoFilterMode = False
End If
Next
End Sub
Code:
Sub ClearFiltersAllSheets()
WS_Count = ActiveWorkbook.Worksheets.Count
' Begin the loop to disable all filters
For i = 1 To WS_Count
If ThisWorkbook.Sheets(i).FilterMode Then
ThisWorkbook.Sheets(i).ShowAllData
End If
Next i
End Sub
I would like to have a message pop up to say 'reset completed, move to step 2'
or something like this.
Many thanks in advance for any advice!