protect and unprotect sheet by user input

KalilMe

Active Member
Joined
Mar 5, 2021
Messages
343
Office Version
  1. 2016
Platform
  1. Windows
hello

is there any way protect and unprotect the sheet based on input box? the first time when I select any cell then show input box I enter my password then protect the sheet and when select any cell shows the message has tow choice " do you want change the password " if press ok then show inputbox again and enter a new password and protect the sheet and if press no then show the inputbox and enter old password to unprotect the sheet if the password wrong after entering twice should show message " sorry you have only two tries " and close the inputbox with stay the active sheet and if the password is right then should unprotect the sheet but with considering when before close the file of course it will save the changes in sheets also protect based on the last password is entered
I hope my post is clear
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Sorry, but your message is rather confusing. Try to use punctuations, uppercases :)and short(er) sentences, in order to divide and make clear/ coherent the content of your long phrase. It's very useful if you want to be understood and get a response.
 
Last edited:
Upvote 0
I doubt my message is not clear even I don't use grammar or punctuation
anyway thank you for advice
 
Upvote 0

Forum statistics

Threads
1,214,599
Messages
6,120,453
Members
448,967
Latest member
grijken

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