Skip
I am searching a word 'Total"in report
there are three totals i want only third total with corresponding value this search first total
here is the code
For j = 5 To 41
dfst = Cells(j, 1).Text
if dfst = MyScreen.GetString(1,15,5) then
If dfst <> "" then
do
Set MyArea = MyScreen.Search("Total")
MyScreen.MoveTo MyArea.Bottom, MyArea.Right + 2
MyScreen.Moveto 2, 15
MyRw = MyScreen.Row
Sess0.Screen.Sendkeys("<PF8>")
loop
Next
I am searching a word 'Total"in report
there are three totals i want only third total with corresponding value this search first total
here is the code
For j = 5 To 41
dfst = Cells(j, 1).Text
if dfst = MyScreen.GetString(1,15,5) then
If dfst <> "" then
do
Set MyArea = MyScreen.Search("Total")
MyScreen.MoveTo MyArea.Bottom, MyArea.Right + 2
MyScreen.Moveto 2, 15
MyRw = MyScreen.Row
Sess0.Screen.Sendkeys("<PF8>")
loop
Next