1. Sub 工作表保护与解除()
    2. ActiveSheet.protect Password:="wshzw" '为工作表保护加口令
    3. ActiveSheet.Unprotect Password:="wshzw" '解除工作表保护
    4. End Sub