2016-07-04 69 views

回答

0

有一些本地VB對象屬性用於獲取所選列和行的單元格文本。

sub ClicktheRowUsingText(rowText, rowIndex) 
    Dim textfromCell, rowIndex, rowCount, i 
    rowCount = tgridNew.ApproxCount 
    for i=1 to rowCount-1 
     textfromCell = tgridNew.Columns.Item(0).CellText(rowIndex) 
      if textFromCell = rowText Then 
       'Call here the methods given in the above links 
       Exit for 
      End if 
    Next 
End Sub 
相關問題