Unprotect Workbook : Workbook Protect « Excel « VBA / Excel / Access / Word






Unprotect Workbook

 

Sub UnprotectWorkbook()
    Dim wb As Workbook
    Set wb = ThisWorkbook
    wb.Unprotect "Excel2003"
End Sub

 








Related examples in the same category

1.Protect workbook
2.Show the workbook protection
3.checks the UserName; if it is not Admin, this code protects each sheet from user changes