I have locked cells in a spreadsheet using this lines of code.
Range("A1:D23").Select
Selection.Locked = True
ActiveSheet.Protect Contents:=True
This prompts me whenever I click on a cell which is readonly to unprotect sheet from review tab and might be prompted for password.
My problem is, it is not prompting for password.How do I first set password when he wants to unprotect.Secondly I want to pass the row information that he selected to change and want to create a button when the adjoining readonly cell is used for editing.