vba excel protect with password code example Example: excel vba protect worksheet without password Worksheets("Sheet1").Unprotect "Password"