I have recently started writing some Macro's in Excel. I have a protected worksheet, and a few buttons that allow the user to add/remove columns/rows at a certain point in the spreadsheet.
I currently unprotect the worksheet, perform the functions and then protect the worksheet.
The problem is, is that the protected sheet password is in plain text in the macro for any curious eyes to see.
How can I have a password on the sheet to protect it, but at the same time, allow my Macro to unprotect the spreadsheet whilst it performs its functions, and then reprotect it, without typing the plaintext password in the macro?