To automate my work, I sometimes resort to macros in Excel. I make them this way: first I use the "Record Macro" option, and then I edit the macro itself.

But now I am faced with the fact that what I need cannot be modeled. You can only edit the macro that is available. To do this, in this macro, change the property or method of the object. But I don’t know what properties or methods this object has. How can you find out? My object:

session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpACTG/ssubMAINAREA:SAPLSUID_MAINTENANCE:1106/cntlG_ROLES_CONTAINER/shellcont/shell") 

    2 answers 2

    Try объект.GetType().GetProperties() for properties and объект.GetType().GetMethods() for method.

      1. In the VBA editor, when writing a code, hints appear when a dot is placed after the object. The editor offers options for continuing the line:

      enter image description here

      1. In the VBA editor, press F2 (or the icon with the yellow drop-down box) - the Object Browser window opens with information about the classes, objects, and their properties enter image description here

      enter image description here