danelskibr
Board Regular
- Joined
- Dec 31, 2014
- Messages
- 58
Hello,
I have a spreadsheet that is shared with people throughout the company, but what they can see and do with the spreadsheet is limited
I have password protection on the VBA Project, the workbook, and all the sheets.
I allow the users to interact with the spreadsheet through macros. When a user clicks a button to run a macro, the macro will unprotect certain portions of the workbook in order to run without errors. At the end of the macro, code runs to protect everything once again.
The problem is that if I run the macro and then hit the "Esc" key repeatedly, I will break the macro in the middle of it running and after it has unprotected certain parts of the workbook. This allows the user a way into the protected aspects of the sheets.
Is there a way to prevent this type of breach?
Thank you for your help!
I have a spreadsheet that is shared with people throughout the company, but what they can see and do with the spreadsheet is limited
I have password protection on the VBA Project, the workbook, and all the sheets.
I allow the users to interact with the spreadsheet through macros. When a user clicks a button to run a macro, the macro will unprotect certain portions of the workbook in order to run without errors. At the end of the macro, code runs to protect everything once again.
The problem is that if I run the macro and then hit the "Esc" key repeatedly, I will break the macro in the middle of it running and after it has unprotected certain parts of the workbook. This allows the user a way into the protected aspects of the sheets.
Is there a way to prevent this type of breach?
Thank you for your help!