Prevent autorun VBA code when opening a file
问题 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