Hello,
I have a trouble with my loop function where it show "Error occured while retrieving data" and the code is always ended at line 20. Can somebody help me if there's any thing wrong with my code so far ?
I have a trouble with my loop function where it show "Error occured while retrieving data" and the code is always ended at line 20. Can somebody help me if there's any thing wrong with my code so far ?
Code:
Dim r As Range, rall As Range
With ActiveSheet
Set rall = .Range("a2", .Range("a" & .Rows.Count).End(xlUp))
End With
For Each r In rall
Set rdate = r
'Script name 1'
objSess.findById("wnd[0]").maximize
objSess.findById("wnd[0]/tbar[0]/okcd").Text = [COLOR=#ff0000]rdate[/COLOR]
objSess.findById("wnd[0]").sendVKey 0
objSess.findById("wnd[0]/tbar[1]/btn[17]").press
Next r
Last edited: