Skip to Content
avatar image
Former Member

Scripting VBA

Hello, I want to do the code with "If the name box existed then do if not go to next step"
I don't know how to write that correctly

vMsg_sap = Session.findById("wnd[1]/**what should be there**").Text 'message from sap
If vMsg_sap = "Set Controlling Area" Then
MsgBox "ello"
End If

x1mkn.png (6.7 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jul 31, 2017 at 08:05 AM

    Hello Tomasz,

    the answer is: Nothing.

    vMsg_sap = session.findById("wnd[1]").Text

    This should give you the title of the window.

    Let us know your result.

    Best regards
    Stefan

    Add comment
    10|10000 characters needed characters exceeded