Lock unhide sheet in a workbook with a password

vikosh

Board Regular
Joined
Dec 12, 2011
Messages
92
Office Version
  1. 2019
Platform
  1. MacOS
Hi,

Is there a way to make sure that only i can unhide one of the worksheets in a workbook using a password?

I have two worksheets. One of them is hidden, but i'd like to lock it with the password. I wouldn't like to have any password prompts when other users open the workbook, but rather the password prompt when someone tries to unhide the hidden worksheet.

Is this possible? Probably with VBA?

Thank you in advance,
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Hide the worksheet and then Protect Workbook (with password) on the Review ribbon tab?
To unhide the worksheet you would first Unprotect the workbook with your password & then unhide the worksheet.
 
Upvote 0
Another way you could do it is to make the worksheet Veryhidden which you have to do with VBA and then password protect the VBA project for that workbook, This would allow you to still Protect the workbook without a password if you wanted to
 
Upvote 0

Forum statistics

Threads
1,224,747
Messages
6,180,712
Members
452,995
Latest member
isldboy

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