cancel
Showing results for 
Search instead for 
Did you mean: 

Error with variables

Former Member
0 Kudos

Hi exeperts. The SAP does not accept, use variables in their addresses? For example:

In the line :

session.findById("wnd[0]/usr/sub:SAPMM07R:0521/chkRESB-XLOEK[i-1,83]").Selected = True

Thank's


for i=1 to 15

If Cells(x, 4) = i Then

session.findById("wnd[0]/usr/sub:SAPMM07R:0521/chkRESB-XLOEK[i-1,83]").Selected = True

session.findById("wnd[0]/tbar[0]/btn[11]").press

Cells(x, 3) = session.findById("wnd[0]/sbar").Text

End If

Next





rue

Accepted Solutions (1)

Accepted Solutions (1)

holger_khn
Contributor
0 Kudos

Hello.

You need to write variables in a few that script identify it as an variable:


session.findById("wnd[0]/usr/sub:SAPMM07R:0521/chkRESB-XLOEK[" & (i-1) & ",83]").Selected = True


Hope this helps.

Best regards,

Holger

Former Member
0 Kudos

Tanks.

Answers (0)