EXCEL VBA UserInterfaceOnly:= True not working

非 Y 不嫁゛ 提交于 2019-11-28 11:38:12

问题


When I use (some code here).copy destination:=(some code there). It will still prompt for protection issues on cells. Basically it just won't let my code runs.


回答1:


The status UserInterfaceOnly:=TRUEis unfortunately not stored in the file - therefore, if you reopen the file, it will be fully protected. Either use the Workbook_Open event to reapply this protection status - or unprotect and then reprotect the worksheet in your VBA code directly.

See Ozgrid for further details!



来源:https://stackoverflow.com/questions/14162483/excel-vba-userinterfaceonly-true-not-working

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!