【发布时间】:2016-05-09 09:22:57
【问题描述】:
我一直在尝试使用 VBA 保护 Excel 中的工作表,每次尝试编辑或取消保护工作表时都会要求用户输入密码。 我已经在下面尝试过这个,但效果不佳。 感谢您的大力帮助。
Function protectSheet()
ThisWorkbook.Sheets("User").Protect Password:="trial", true, true
End Function
【问题讨论】: