Utilises donc la propriété TextMatrix
Private Sub Command1_Click()
Dim i As Integer, Max As Integer, Tmp As Integer
Dim ColumnIndex As Integer, RowIndex As Integer
Max = MSFlexGrid1.TextMatrix(MSFlexGrid1.Rows - 1, 0)
For i = 0 To MSFlexGrid1.Cols - 1
Tmp = MSFlexGrid1.TextMatrix(MSFlexGrid1.Rows - 1, i)
If Max < Tmp Then
Max = Tmp
ColumnIndex = i
End If
Next i
Max = MSFlexGrid1.TextMatrix(0, MSFlexGrid1.Cols - 1)
For i = 0 To MSFlexGrid1.Rows - 1
Tmp = MSFlexGrid1.TextMatrix(i, MSFlexGrid1.Cols - 1)
If Max < Tmp Then
Max = Tmp
RowIndex = i
End If
Next i
MsgBox RowIndex & " ; " & ColumnIndex & vbCrLf & MSFlexGrid1.TextMatrix(RowIndex, ColumnIndex)
End Sub
By Renfield
[mailto:thomas_reynald@msn.com thomas_reynald@msn.com]
Aucune touche n'a ete blessee lors de la saisie de ce texte.......... ;)