i have 6 pages. each page has 6 to 23 rows
picking correctly. but last page not picking up before picking it come out from the loop.
could you help me what is wrong in the below code.
Do
For i = 6 To 23
a = Trim(Sess.Screen.GetString(i, 11, 6))
b = Trim(Sess.Screen.GetString(i, 22, 10))
c = Trim(Sess.Screen.GetString(i, 35, 20))
d = Trim(Sess.Screen.GetString(i, 59, 10))
if Logonid <> "MVPRB" then
j = j + 1
xl_sheet_1.Cells(j, "A").Value = a
xl_sheet_1.Cells(j, "B").Value = b
xl_sheet_1.Cells(j, "C").Value = c
xl_sheet_1.Cells(j, "D").Value = d
Else
End If
Next
Sess.Screen.SendKeys ("<PF8>")
Call Wait(Sess)
Loop Until Ucase(Sess.Screen.GetString(24, 8, 11)) = "END OF LIST
picking correctly. but last page not picking up before picking it come out from the loop.
could you help me what is wrong in the below code.
Do
For i = 6 To 23
a = Trim(Sess.Screen.GetString(i, 11, 6))
b = Trim(Sess.Screen.GetString(i, 22, 10))
c = Trim(Sess.Screen.GetString(i, 35, 20))
d = Trim(Sess.Screen.GetString(i, 59, 10))
if Logonid <> "MVPRB" then
j = j + 1
xl_sheet_1.Cells(j, "A").Value = a
xl_sheet_1.Cells(j, "B").Value = b
xl_sheet_1.Cells(j, "C").Value = c
xl_sheet_1.Cells(j, "D").Value = d
Else
End If
Next
Sess.Screen.SendKeys ("<PF8>")
Call Wait(Sess)
Loop Until Ucase(Sess.Screen.GetString(24, 8, 11)) = "END OF LIST