Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

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?


1 Answer
SAP Expert

Try renaming variable “Application” as it is used as a variable however it is also predefined read only object in Excel.

Advertisements

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.