Name

workbook.Unprotect([Password])

Synopsis

Removes protection from the workbook.

Argument

Settings

Password

The password used to protect the workbook. Password is required if the workbook was protected with a password.

The following code unprotects a workbook:

    Set wb = ThisWorkbook
    wb.Unprotect "Excel2003"

Get Programming Excel with VBA and .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.