How to: Remove Protection from Worksheets
Some code examples in this topic use the this or Me keyword or the
Themethod removes protection from a Microsoft Office Excel 2003 worksheet.
The following example uses the variable
getPasswordFromUser, which contains a password obtained from the user. It also assumes that you are working with a worksheet named
To unprotect a Worksheet
Call the Unprotect method of the worksheet and pass in the password, if required.