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

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
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,223,711
Messages
6,174,029
Members
452,542
Latest member
Bricklin

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