Hello,
Im using the following VB code to protect the active worksheet and which enables outlining and filters to continue to work, however when i close the workbook and reopen it, the protect mode is still on, but the ability to use the filters and outlining has suddenly disabled,
Any ideas??
Code:
Sub Protect_ActiveSheet()
On Error Resume Next
With ActiveSheet
.Protect Password:="lock", userinterfaceonly:=True
.EnableOutlining = True
.EnableAutoFilter = True
End With
ActiveSheet.Outline.ShowLevels ColumnLevels:=1
Range("D12").Select
End Sub
Im using the following VB code to protect the active worksheet and which enables outlining and filters to continue to work, however when i close the workbook and reopen it, the protect mode is still on, but the ability to use the filters and outlining has suddenly disabled,
Any ideas??
Code:
Sub Protect_ActiveSheet()
On Error Resume Next
With ActiveSheet
.Protect Password:="lock", userinterfaceonly:=True
.EnableOutlining = True
.EnableAutoFilter = True
End With
ActiveSheet.Outline.ShowLevels ColumnLevels:=1
Range("D12").Select
End Sub