i have code to Filter data and working properly, here the code
Code: Select all
Sub unfilter()
Set wkbCrntWorkBook = ActiveWorkbook
Application.ScreenUpdating = False
Application.ScreenUpdating = True
ActiveSheet.AutoFilterMode = False
ActiveWindow.FreezePanes = False
Columns.EntireColumn.Hidden = False
Rows.EntireRow.Hidden = False
End Sub
1. if the data area have "filtered" , click the button code at first, so data filter is gone
2. and if the data not filtered, click the button again so data filter is showing
i hope someone would help me a solution
.sst