Hi,
I am creating a shared workbook in Excel 2010 - this is unavoidable.
In it I have protected cells, filters, grouping and macros in order to make those work together. The macros work when the file is not a shared document, and activate on opening. However, they do not work when I share the file. According to shared workbook limitations, I can share pre-protected documents, and run pre-shared macros.
My question therefore is, why, when I open my shared file does a "Run-time error '1004': Application-defined error" occur?
I would really appreciate some help
Rich
Macros:
[code]
Private Sub Workbook_Open()
Run "Test"
Run "Group"
End Sub
[code]
[code]
Sub Test()
ActiveSheet.EnableAutoFilter = True
ActiveSheet.Protect contents:=True, userInterfaceOnly:=True
End Sub
[code]
[code]
Sub Group()
ActiveSheet.EnableOutlining = True
ActiveSheet.Protect contents:=True, userInterfaceOnly:=True
End Sub
[code]