R
rob nobel
I need to make sure that if data on a sheet is filtered, that the user must
reset the filter back to "all" before he can close the workbook.
The code I have (in the sheet's module) to reset the filter/s is:
Sub RemoveFilter()
If ActiveSheet.FilterMode Then
ActiveSheet.ShowAllData
End If
End Sub
I expect a before close event needs to happen in ThisWorkbook but I don't
know how to construct the code.
Rob
reset the filter back to "all" before he can close the workbook.
The code I have (in the sheet's module) to reset the filter/s is:
Sub RemoveFilter()
If ActiveSheet.FilterMode Then
ActiveSheet.ShowAllData
End If
End Sub
I expect a before close event needs to happen in ThisWorkbook but I don't
know how to construct the code.
Rob