Hello Script Man,
Thank you...that was very helpfull answer !!!
..but I have got still few remarks....
Let's concentrate first on question 1.
I have adapted the script and it works fantastic - this is what I expected :-) - I can define as many rows to procces as required ...but if there is an error in one line scripts stops and do not continue. Is there any quick solution for it ?
With referenace to second question I can not see the SAP message in Excell fie. I have used below for it - maybe I did sth wrong ?
could you please have a look ?
.............................
session.findById("wnd[0]/usr/subTABSTRIP:SAPLATAB:0100/tabsTABSTRIP100/tabpTAB01/ssubSUBSC:SAPLATAB:0200/subAREA1:SAPLAIST:1140/txtANLA-TXA50").caretPosition = 3
session.findById("wnd[0]/tbar[0]/btn[11]").press
On Error Resume Next
xclsht.Cells(i, 4).Value = session.findById("wnd[0]/sbar").Text
On Error GoTo 0
Next
MsgBox "All " & CStr(xclapp.ActiveCell.SpecialCells(11).Row - 1) & " Excel rows have been processed."
End If
Set xclwbk = Nothing
Set xclsht = Nothing
xclapp.Quit
Set xclapp = Nothing
End Sub