I have VBA in Excel 32 bits that can upload Sales Orders into SAP ERP software. In order to get the code to run on 64 bits Excel, I uninstalled current SAP GUI and installed SAP GUI 7.70. I now get an error:
Run-time error '-2147417848 (80010108)':
Automation error
The object invoked has disconnected from its clients
Here is a code snapshot with error at line sap_sales_order = boOrder.SalesDocument
:
'Call the method
boOrder.CreateFromDat2 orderheaderin:=boHeader, _
ordertext:=boText, _
orderpartners:=boPartner, _
orderitemsin:=boItemin, _
orderschedulesin:=boSchedin, _
orderconditionsin:=boCondin, _
Return:=oReturn
sap_sales_order = boOrder.SalesDocument
'Check if a error-message was returned
bError = False
I just referenced the 4 new DLL's in VBA... No Change.