我想使用第三方COM ADD-IN
在vbscript中自动执行excel过程Sub LoadAddIn()
Dim oComAddIn As COMAddIn
Set oComAddIn = Application.COMAddIns.Item("C:\Program Files (x86)\Thomson Reuters\Eikon\EikonOfficeShim.dll")
oComAddIn.Connect = True
CreateFolder
End Sub
但是当从vbscript运行excel时,它在没有启用任何加载项的情况下打开,并且使用上述加载项的公式不起作用。
我搜索了很多网站,但在从vbscript执行excel时没有获得用于连接第三方加载项的确切语法。
答案 0 :(得分:0)
I can open the EIKON AddIn and start the process using the following:
'Start EIKON Update
Dim RetVal As Long
RetVal = ExecCmd("C:\Program Files (x86)\Thomson Reuters\Eikon\eikon.exe -officeexcel -a " & sPath)
Note that sPath is the full string path of the file I am opening.
Caveat: The file does not automatically close. I'm still working on that part.