Getting error message while using SAP Scripting Tool
I am using VBA functionality in SAP Script tool and getting an error message: “Invalid use of property” at Set Application = SapGuiAuto.GetScriptingEngine.
Below is my code:
If Not IsObject(Application) Then
Set SapGuiAuto = GetObject("SAPGUI")
Set Application = SapGuiAuto.GetScriptingEngine
Why could be the reason?