EXCEL VBA UserInterfaceOnly:= True无效

4 L*_*ver 1 excel vba

我用的时候(some code here).copy destination:=(some code there).它仍然会提示protection issues on cells.基本上它不会让我的代码运行.

Pet*_*ert 11

UserInterfaceOnly:=TRUE遗憾的是,状态未存储在文件中 - 因此,如果重新打开文件,它将受到完全保护.使用该Workbook_Open事件重新应用此保护状态 - 或取消保护,然后直接在VBA代码中重新保护工作表.

有关详细信息,请参阅Ozgrid!