run a macro in a protected sheet
I use Excel 2002
I created a workbook of 12 sheets, and potected each sheet with a password
with Autofilter enabled.
To Show all Data after filtering, I created a button on each sheet with a
command Click event as follows:
If ActiveSheet.FilterMode = True Then
ActiveSheet.ShowAllData
Else
Exit Sub
End If
When the button is clicked I got an error "ActiveSheet.ShowAllData"
highlighted.
I couldn't figure out what is the error.
Any help would be much appreciated
--
Microsoft Biased
|