VBS SAP 스크립트를 시작하고 VBS 코드의 일부 변수를 변경하기 위해 매크로를 작성하려고합니다. 어떤 도움이라도 좋을 것입니다! 아래로 내가 필요한 개체 오류VBS에서 VBS 실행 VBS Object 오류 필요
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 아무것도 다음 "위의 것은 깨진"' –
런타임 오류 '424' 개체 을 요구하고 VBA는 아래의 라인을 강조 MSGBOX없는 경우 세션 설정 = Connection.Children (0) – Formatted