Hello All,
I am having an issue with a macro abd sharing a workbook. The macro enables me to using grouping while protecting the worksheet. Here is the code:
Private Sub Workbook_Open()
Dim wksht As Worksheet
For Each wksht In ThisWorkbook.Sheets
With wksht
.EnableOutlining = True
.Protect contents:=True, userInterfaceOnly:=True
End With
Next wksht
End Sub
I recieve this message when I save the shared workbook and reopen it.
Run-time error '1004':
Method 'Proctec' of object '_Worksheet' failed.
Any suggestions to use the shared protected worksheets with the grouping would be great. Thank you.
If this helps here is the link to download the document. https://docs.google.com/open?id=0B5VfEg2PhuTIaHpoVzNLa1VxZXM
I am having an issue with a macro abd sharing a workbook. The macro enables me to using grouping while protecting the worksheet. Here is the code:
Private Sub Workbook_Open()
Dim wksht As Worksheet
For Each wksht In ThisWorkbook.Sheets
With wksht
.EnableOutlining = True
.Protect contents:=True, userInterfaceOnly:=True
End With
Next wksht
End Sub
I recieve this message when I save the shared workbook and reopen it.
Run-time error '1004':
Method 'Proctec' of object '_Worksheet' failed.
Any suggestions to use the shared protected worksheets with the grouping would be great. Thank you.
If this helps here is the link to download the document. https://docs.google.com/open?id=0B5VfEg2PhuTIaHpoVzNLa1VxZXM