SAP GUI Scripting Error, “The Enumerator of the collection cannot find an element with the specified index.”
问题 A few weeks ago I generated a script via SAP's built in GUI scripting functionality, and then put the vba in an excel document and attached it to a button. this worked perfectly fine for few weeks, however now when I press the button I get this error: "The enumerator of the collection cannot find en element with the specified index." on the line that says Set session = Connection.Children(0) Here is a snippet of code If Not IsObject(Sap_Application) Then Set SapGuiAuto = GetObject("SAPGUI")