Hello All,
I use the following macro in a workbook and would like to modify it so that each time the workbook is opened each of the worksheets has the AutoFilter criteria removed.
I would like the Filter criteria to be reset to 'All' but still retain the AutoFilter dropdown arrows.
I use the following macro in a workbook and would like to modify it so that each time the workbook is opened each of the worksheets has the AutoFilter criteria removed.
I would like the Filter criteria to be reset to 'All' but still retain the AutoFilter dropdown arrows.
Code:
Private Sub Workbook_Open()
Dim Sh As Worksheet
Application.ScreenUpdating = False
For Each Sh In ThisWorkbook.Worksheets
Sh.Select
Sh.Protect userinterfaceonly:=True
Sh.EnableSelection = xlUnlockedCells
Sh.EnableAutoFilter = True
Next
Sheets(1).Select
Application.ScreenUpdating = True
End Sub
[Code]
Thanks in advance
Regards,
Dave T