2
当我在vba
中调用shell命令时,程序将像命令提示符一样打开,但没有任何反应,也没有获得任何结果。我似乎无法弄清楚,需要一些帮助。在Excel 2010中调用shell命令VBA
指挥的作品
C:\Program Files\BioDiscovery\ImaGene 9.0>ImaGene.exe -batch "C:\Users\cmccabe\Desktop\EmArray\Design\test_11_19_2015.bch"
我在2010年Excel中尝试使用VBA(这将打开程序和命令提示,但不执行命令)。
Dim Par As String
Par = "dir c:\Program Files\BioDiscovery\ImaGene 9.0\ImaGene.exe -batch "C:\Users\cmccabe\Desktop\EmArray\Design\imagene.bch"
Call Shell("C:\WINDOWS\system32\cmd.exe /c " & Par, 1)
MsgBox ("ImaGene analysis complete")
非常感谢,我一直在努力。我感谢您的帮助 :)。 – Chris