运行使用VBA外部程序 [英] Run external program with VBA

查看:747
本文介绍了运行使用VBA外部程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想写的Excel VBA code打开外部Windows程序,然后外部程序中打开一个文件。我已经想通了如何打开使用壳牌命令的程序,但我不知道该怎么一旦其开通使用任何程序的功能。这是我到目前为止所。
谢谢!

 程序=C:\\ Program Files文件\\ EP-快速\\ EP-Quick.exe
的TaskID =壳牌(节目,1)


解决方案

在VBA帮助第一次审查的SendKeys和:

http://msdn.microsoft.com /en-us/library/gg278655(v=office.14).aspx

然后,使用谷歌,试图找到具体的例子来你的应用程序

I am trying to write Excel VBA code to open an external windows program and then open a file within that external program. I've figured out how to open the program using the "Shell" command but I don't know how to use any of the programs functions once its opened. This is what I have so far. Thanks!

Program = "C:\Program Files\EP-Quick\EP-Quick.exe"
TaskID = Shell(Program, 1)

解决方案

First review SendKeys in VBA help and:

http://msdn.microsoft.com/en-us/library/gg278655(v=office.14).aspx

Then, using Google, try to find examples specific to your application

这篇关于运行使用VBA外部程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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