I have the macro code below to unprotect a worksheet, then run a function, and then finally re protect the work sheet.
However i would like to add in a password to be entered when the macro is run, then when the worksheet is re-protected the password is automatically entered.
e.g. the code would say:
1. enter password
2. unprotect worksheet
3. delete selection
4. password protect worksheet.
![]()
Please Login or Register to view this content.
Bookmarks