Hiding/Locking VBA coding

sassriverrat

Well-known Member
Joined
Oct 4, 2018
Messages
655
Good Morning,
As I understand it, you cannot lock/unlock a VBA project with a module. Maybe someone can correct me on this.

Here's what I'm trying to do. I have a hidden sheet that can only be unhidden with a password- I'd like a code (if it can be done) that hides the coding or makes it unable to be easily seen (i.e. 'View Code'- I just turn off the "Developer" tab on most user machines...). Then I'd like to put a button in the hidden Sheet ("Developer") that allows me to quickly access the code myself. The people using this workbook aren't excel friendly AT ALL, but they have a tendency to delete stuff they don't understand...like if they don't understand a formula adding two numbers, they manually type in the answer over top of the formula....it's a headache.

Anyway- thanks for your help. I have two other buttons- one that unprotects all (only the hidden sheet isn't locked) sheets and one that unprotects the workbook.
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.

Forum statistics

Threads
1,223,896
Messages
6,175,265
Members
452,627
Latest member
KitkatToby

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top