Tuesday, July 17, 2012

A webtable is having 100*500 cells; and one of the cell is having abcde search for the string

For i=1 to 100
        For j=1 to 500
                        s=Browser("B1").page("p1").Webtable("t1").GetCellData(i,j)
                        If s="abcde" Then
                                found=1
                                print "abcde  is found in cell    :"&i&","&j
                                Exit for
                        End If
    Next
        If found=1 Then
                        Exit for
        End If
Next

No comments:

Post a Comment