Hi
I have a protected sheet in my workbook
I am able to unprotect the filtering however i dont seem to be able to unprotect the outlining.
I tried assigning the code below to it but it s not working
Any Ideas?
Thanks
----------------------------------------------------------------------------------------------------------------------------------------
Option Explicit
Private Sub worksheet_activate()
With ActiveWorkbook.Sheets("update")
Sheets("UPDATE").Select
Rows("1:1").Select
Worksheets("UPDATE").Unprotect "HORSE"
Range("B1").Select
Worksheets("UPDATE").Protect "HORSE", AllowFiltering:=True, userInterfaceonly:=True
ActiveSheet.EnableOutlining = True
End With
End Sub
I have a protected sheet in my workbook
I am able to unprotect the filtering however i dont seem to be able to unprotect the outlining.
I tried assigning the code below to it but it s not working
Any Ideas?
Thanks
----------------------------------------------------------------------------------------------------------------------------------------
Option Explicit
Private Sub worksheet_activate()
With ActiveWorkbook.Sheets("update")
Sheets("UPDATE").Select
Rows("1:1").Select
Worksheets("UPDATE").Unprotect "HORSE"
Range("B1").Select
Worksheets("UPDATE").Protect "HORSE", AllowFiltering:=True, userInterfaceonly:=True
ActiveSheet.EnableOutlining = True
End With
End Sub