你如何阻止“Microsoft excel正在等待另一个应用程序来完成自动化”?消息框? [英] How do you stop the "Microsoft excel is waiting for another application to complete an ole automation" message box?

查看:1460
本文介绍了你如何阻止“Microsoft excel正在等待另一个应用程序来完成自动化”?消息框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用VBA创建一些图表导出它们。使用VBA,我可以自动化Photoshop,将导出的图表图像添加到Photoshop模板中。还有一些Photoshop命令,但由于我正在创建2000个图像,因此需要花时间从VBA
代码转到下一个Photoshop命令。整个过程有效,除了我必须回答消息框说"Microsoft excel正在等待另一个应用程序来完成自动化"。所以VBA代码将运行下一个Photoshop进程。


 


我想阻止此消息框弹出,以便我可以运行整个过程过夜,而我不在我的办公桌前。

解决方案

在操作开始之前尝试将Excel的Application.DisplayAlerts设置为False。

I am using VBA to create some charts export them. With VBA I then automate Photoshop to add the exported chart images to a Photoshop template. There are a few more Photoshop command but since I'm creating 2000 images it take time to go to a from the VBA code for the next Photoshop command. The whole process works except for I have to answer the message box saying "Microsoft excel is waiting for another application to complete an ole automation" so the VBA code will run the next Photoshop process.

 

I want to stop this message box from popping up so I can run the whole process over night while I'm not at my desk.

解决方案

Try setting Excel's Application.DisplayAlerts to False before the operation starts.


这篇关于你如何阻止“Microsoft excel正在等待另一个应用程序来完成自动化”?消息框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆