ManUBlueJay
Active Member
- Joined
- Aug 30, 2012
- Messages
- 320
- Office Version
- 365
- Platform
- Windows
THere have been several discussions on this but I cannot find a solution.
I used the following code on workbook_open
Worksheets("Inventory").Protect UserInterfaceOnly:=True, AllowUsingPivotTables:=True
I would expect it to allow code to run on that sheet including refreshing Pivot tables, but it fails with the message"RunTime Error 1004. That another sheet is protected using the same data"
Can anyone help
I used the following code on workbook_open
Worksheets("Inventory").Protect UserInterfaceOnly:=True, AllowUsingPivotTables:=True
I would expect it to allow code to run on that sheet including refreshing Pivot tables, but it fails with the message"RunTime Error 1004. That another sheet is protected using the same data"
Can anyone help