Hi Darren
I apologise. Yes, I was able to drag the ShowAll icon to he task bar whilst
in protect mode, but of course it doesn't work whilst protection is invoked.
Dave Peterson posted saying that you can enable Autofilter when setting
Protection on in XL2002 upward, and showed some code for what to do with
earlier versions.
Following Dave's lead, you will need to add the following code to the
workbook to be triggered on opening,
Sub auto_open()
With Worksheets("sheet1")
ActiveSheet.Protect Password:="roger", _
DrawingObjects:=True, _
Contents:=True, Scenarios:=True, _
AllowFiltering:=True
End With
End Sub
Then also add this code and attach it to a button which you can add to your
toolbar
Sub ShowAll()
ActiveSheet.Unprotect Password:="roger"
On Error Resume Next
ActiveSheet.ShowAllData
On Error GoTo 0
ActiveSheet.Protect Password:="roger", _
DrawingObjects:=True, _
Contents:=True, Scenarios:=True, _
AllowFiltering:=True
End Sub
Change the password to match that you currently use for the Sheet.
The On Error lines are to trap against a failure if you press the button
when a filter is not in place.
Sorry for misleading you with earlier posting.
Regards
Roger Govier