macro for message box, then lock cells after name is entered

stressler

Board Regular
Joined
Jun 25, 2014
Messages
95
Good morning. I need a macro that would give me a message box and then lock my cell after a name is entered in the cell. As an example. If I have a blank cell, always in row 1, column C:AA, then when a name is entered in that cell, a message box will pop up, asking the user if they want to accept the signature or not, if they select yes, I want the cell to save the name and password protect that cell so that it cannot be changed unless you enter the password. If the user selects no to the message box question, I want the message box to close and the cell to remain enabled and editable without password protecting it. So the password protection is triggered by a yes response to the question, any other response would not trigger the password protection to that cell.
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Okay, perhaps I asked for too much within 1 request.

Let me ask this general question instead. Is there a way to have a cell password protected by the user selecting the Yes answer from a msgbox question?
 
Upvote 0

Forum statistics

Threads
1,216,487
Messages
6,130,949
Members
449,608
Latest member
jacobmudombe

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