crossfire266
New Member
- Joined
- May 12, 2019
- Messages
- 2
Hi everyone!
Hoping to get some help with the following issue..
I have the VBA code (below) which will protect and unlock grouping options for a excel sheet, however I would like to add the option for user to edit/add cells, use filter options too .. pretty much get all the functionality in a protect sheet ticked out.
Can anyone assist me with this on letting me know where I should add the code to allow the extra functionality for a protected sheet?
Current code:
Sub Workbook_Open()
'Update 20140603
Dim xWs As Worksheet
Set xWs = Application.ActiveSheet
Dim xPws As String
xPws = "225" ''Application.InputBox("Password:", xTitleId, "", Type:=2)
xWs.Protect Password:=xPws, Userinterfaceonly:=True
xWs.EnableOutlining = True
End Sub
Thanks in advance,
Jo
Hoping to get some help with the following issue..
I have the VBA code (below) which will protect and unlock grouping options for a excel sheet, however I would like to add the option for user to edit/add cells, use filter options too .. pretty much get all the functionality in a protect sheet ticked out.
Can anyone assist me with this on letting me know where I should add the code to allow the extra functionality for a protected sheet?
Current code:
Sub Workbook_Open()
'Update 20140603
Dim xWs As Worksheet
Set xWs = Application.ActiveSheet
Dim xPws As String
xPws = "225" ''Application.InputBox("Password:", xTitleId, "", Type:=2)
xWs.Protect Password:=xPws, Userinterfaceonly:=True
xWs.EnableOutlining = True
End Sub
Thanks in advance,
Jo