How do I hide/password protect a function?

Greg G

New Member
Joined
Jan 30, 2003
Messages
12
I've created an elaborate function in excel. I would like to do 2 things.

1. Password protect/hide the code
2. It uses an array setup in an excel spreadsheet - hide that information too.

I would still like everyone to be able to use it, just not modify. Any ideas? thank you in advance.
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
To protect/hide the formula(s), right click on the cell or group of cell and select Format Cells. Click the Protection Tab and make sure that the "Locked" and "Hidden" boxes are selected and Click OK. Then go to Tool, Protection, Protect Sheet and enter a password. You must enter it twice. To protect the spreadsheet where the array is, go to Format, Sheet, and select Hide. Then go back to Tools, Protection, Protect Workbook and enter a password. That should do it unless I over simplified your question.

Mike Collins
 
Upvote 0
Thanks Mike. I didn't think it was that easy. Now all my hard work is locked up tight!

Greg
 
Upvote 0

Forum statistics

Threads
1,214,905
Messages
6,122,174
Members
449,071
Latest member
cdnMech

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