Bonjour,
Voici une proposition avec une fonction :
Function arrdico(datas As Variant)
Dim temp(), i&, j&, n&, doublon As Boolean: ReDim temp(1 to 1)
For i = LBound(datas) To UBound(datas)
doublon = False
If datas(i) <> "" Then
For j = LBound(temp) To UBound(temp)
If datas(i) = temp(j) Then
doublon = True: Exit For
End If
Next j
If Not doublon Then
n = n + 1: ReDim Preserve temp(1 to n)
temp(n) = datas(i)
End If
End If
Next i
arrdico = temp
End Function
Pour l'instant, la fonction est prévue pour recevoir en argument un array unidimensionnel (datas) : il faudra donc adapter le code s'il en était autrement.
Cdlt,
Edit : Salut Baboutz !