我想写一个宏来启动一个VBS SAP脚本并可能更改VBS代码的一些变量。任何帮助将是伟大的! 随着下面我得到所需的对象错误从VBA运行VBS SAP对象所需的错误
Public Sub SimpleSAPExport()
Set SapGuiAuto = GetObject("SAPGUI") 'Get the SAP GUI Scripting object
Set SAPApp = SapGuiAuto.GetScriptingEngine 'Get the currently running SAP GUI
Set SAPCon = SAPApp.Children(0) 'Get the first system that is currently connected
Set session = Connection.Children(0) 'Get the first session (window) on that connection
' Start the transaction to view a table
session.StartTransaction "SE16"
end sub
后每个“'设置XXX ='”补充:'如果XXX是那么没有什么MSGBOX“上面的东西坏了”' –
运行时错误“424” 所需的对象 和VBA突出了以下线 Set session = Connection.Children(0) – Formatted