whudson1980
New Member
- Joined
- Dec 10, 2013
- Messages
- 13
Hello All, and happy belated Thanksgiving,
I have a workbook with about 20 sheets, most of which are protected.
I have a Main sheet with a "Log In" command button, and based on what password you enter, you're given access to certain sheets.
With that said, it all runs perfectly. And I have a BeforeSave sub that runs protections and basically "logs you out."
I tried making a Sub Called SaveAndLogout which simply does a "ActiveWorkbook.Save" for the purpose of saving when I have the ribbon hidden. But it returns "Run-Time Error 1004: The cell or chart that you are trying to change is protected and therefore read-only."
Why would the save button in the ribbon work just fine, but the ActiveWorkbook.Save throw this error?
Any ideas? I really want to hide the ribbon, which also (unfortunately) hides the save icon.
I have a workbook with about 20 sheets, most of which are protected.
I have a Main sheet with a "Log In" command button, and based on what password you enter, you're given access to certain sheets.
With that said, it all runs perfectly. And I have a BeforeSave sub that runs protections and basically "logs you out."
I tried making a Sub Called SaveAndLogout which simply does a "ActiveWorkbook.Save" for the purpose of saving when I have the ribbon hidden. But it returns "Run-Time Error 1004: The cell or chart that you are trying to change is protected and therefore read-only."
Why would the save button in the ribbon work just fine, but the ActiveWorkbook.Save throw this error?
Any ideas? I really want to hide the ribbon, which also (unfortunately) hides the save icon.