tiredofit
Well-known Member
- Joined
- Apr 11, 2013
- Messages
- 1,924
- Office Version
- 365
- 2019
- Platform
- Windows
VBA code can be protected with a password (although it can be hacked using third party software).
Regardless, adding a password does NOT prevent access to the vb editor.
My workbook contains very hidden worksheets, so the only way to unhide them is using code.
But even if the code is password protected, users can still open the vb editor, open the immediate window and unhide worksheets using:
Is there any way to prevent users from doing this?
I came across code to stop users opening the vb editor but to get round that, all they needed to do is disable macros (which disables the workbook_open event) and then open the vb editor.
Thanks
Regardless, adding a password does NOT prevent access to the vb editor.
My workbook contains very hidden worksheets, so the only way to unhide them is using code.
But even if the code is password protected, users can still open the vb editor, open the immediate window and unhide worksheets using:
Code:
myhiddensheet.Visible = xlSheetVisible
Is there any way to prevent users from doing this?
I came across code to stop users opening the vb editor but to get round that, all they needed to do is disable macros (which disables the workbook_open event) and then open the vb editor.
Thanks