Skip to Content
0

Scripting VBA

Jul 28, 2017 at 09:03 PM

49

avatar image
Former Member

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)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Stefan Schnell
Jul 31, 2017 at 08:05 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded