PORCHER
XLDnaute Occasionnel
Bonjour à tous,
j'ai un problème avec Ubound , message incompatibilité du type
pourriez-vous m'aider, merci
j'ai un problème avec Ubound , message incompatibilité du type
pourriez-vous m'aider, merci
VB:
Private Sub TB_Texte_Change()
Dim T3(), Indice1 As Integer, J As Long
Me.LB_Suggestions.Clear
Indice1 = 0
If Me.TB_Texte <> "" Then
[COLOR=rgb(226, 80, 65)] For J = 1 To UBound(t1) (erreur incompatibilité) [/COLOR]
If t1(J, 1) Like "*" & Me.TB_Texte & "*" Then
ReDim Preserve T3(Indice1)
T3(Indice1) = t1(J, 1)
Indice1 = Indice1 + 1
End If
Next J
End If
If Indice1 > 0 Then
On Error Resume Next
Me.LB_Suggestions.List = Application.Transpose(T3)
End If
End Sub