简体   繁体   English

如何在Excel中编辑VBA,以在打开时关闭应用程序?

[英]How can I edit vba in excel that closes the application on open?

I have a Workbook_Open sub that does some stuff and then calls application.quit. 我有一个Workbook_Open子程序,它执行一些操作,然后调用application.quit。 However, now that I have added this, how I can edit the routine given that excel closes right after it opens? 但是,既然我已经添加了它,鉴于excel在打开后立即关闭,我该如何编辑该例程?

若要临时跳过Workbook_Open子项,请在打开电子表格时按住shift键。

工具->选项->安全->宏,并更改执行宏之前要提示的安全级别。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM