Bonjour
j'ai crée le bout de code suivant :
Dim v1, v2, v3 As Integer
t = Array(v1, v2, v3)
For t(k) = 0 To UBound(t) - 1
MsgBox t(k)
Next
end sub
la variable posée sous la forme t(k) ne semble pas comprise par vba , comment y remedier ?
Merci
mon code etait incomplet , désolé
Dim v1, v2, v3 As variant
t = Array(v1, v2, v3)
tabl = Array("a", "b", "c", "d")
limite = 2
While k <= UBound(t) - 1
For t(k) = 0 To limite
MsgBox tabl(t(k))
Next
k = k + 1
Wend