Prevent autorun VBA code when opening a file

对着背影说爱祢 提交于 2020-02-23 03:48:15

问题


I'm facing a problem where I have written a User form where I have provided the application.visible = false in the workbook program sheet under on_open, now I'm able to run the program but I'm unable to open the workbook or the VBA program.

Please help

Thank you and Regards, Nagarjun B


回答1:


To prevent autorun VBA code like Workbook_Open or Auto_Open click File › Open from the menu/ribbon, select your file and hold down the shift key when you click the Open button.

For a detailed how-to also see here: Preventing auto_open and Workbook_Open events from running.



来源:https://stackoverflow.com/questions/45192218/prevent-autorun-vba-code-when-opening-a-file

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