如果xapplication打开,那么 [英] If xapplication is open, Then

查看:82
本文介绍了如果xapplication打开,那么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在excel vba中定义if函数:如果xxapplication打开,那么......?

How to defind the if function in excel vba: if xxapplication is open, then...?

推荐答案


如何在excel vba中定义if函数:如果xxapplication是打开的,那么......?
How to defind the if function in excel vba: if xxapplication is open, then...?



您使用GetObject。在你的情况下,

You use GetObject. In your case,

展开 | 选择 < span class =codeDivider> | Wrap | 行号



您使用GetObject。在你的情况下,
You use GetObject. In your case,
展开 | 选择 < span class =codeDivider> | Wrap | 行号


Sam,

还有另一个问题,因为我打开了visio在excel中,我设置了vsApp.Visible = False。我用的是vsApp.quit。在SaveAsEx之后,但有时我没有做SaveAsEx。命令并关闭excel,以便visio仍然打开并可以在任务管理器中查看。因此,如果excel关闭,如何制作它,visio也将关闭。


谢谢
Sam,
got another question, since I open the visio within excel, and I set the "vsApp.Visible=False". I use "vsApp.quit" after "SaveAsEx", but sometime I doesn''t do the "SaveAsEx" command and close the excel, so that visio still open and can see in the Task Manager. therefore, how to make it if the excel closed, the visio also will closed.

thanks


这篇关于如果xapplication打开,那么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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