Rohith1324
Board Regular
- Joined
- Feb 27, 2018
- Messages
- 114
Request you to please help on this as I'm not understanding how this issue can be fixed :
In System with Excel 32 BIT below code is getting executed successfully , but the same step when try in Excel 64 BIT I'm getting error :
Code :
If Not IsObject(SAPguiApp) Then
Set SAPguiApp = CreateObject("Sapgui.ScriptingCtrl.1")
End If
If Not IsObject(Connection) Then
Set Connection = SAPguiApp.OpenConnection("- SAP ERP", True)
End If
If Not IsObject(session) Then
Set session = Connection.Children(0)
End If
Error screenshot :
Issue is at :
But when I'm trying in 64 BIT it is getting stopped at line - Set SAPguiApp = CreateObject("Sapgui.ScriptingCtrl.1") ( Not sure if 32 BIT or 64 BIT is the problem here but I see this is the only difference from the system i'm using )
can someone suggest how I can fix this.
In System with Excel 32 BIT below code is getting executed successfully , but the same step when try in Excel 64 BIT I'm getting error :
Code :
If Not IsObject(SAPguiApp) Then
Set SAPguiApp = CreateObject("Sapgui.ScriptingCtrl.1")
End If
If Not IsObject(Connection) Then
Set Connection = SAPguiApp.OpenConnection("- SAP ERP", True)
End If
If Not IsObject(session) Then
Set session = Connection.Children(0)
End If
Error screenshot :
Issue is at :
But when I'm trying in 64 BIT it is getting stopped at line - Set SAPguiApp = CreateObject("Sapgui.ScriptingCtrl.1") ( Not sure if 32 BIT or 64 BIT is the problem here but I see this is the only difference from the system i'm using )
can someone suggest how I can fix this.