oui, mais je pense avoir retrouver ma facon de faire, voilà ce que j'ai trouvé, merci pour tout!
'
Public Function sorted_array(ByRef InputArray As Variant) As Variant
Dim arr As Object
Dim element As Variant
'Creating a array list
Set arr = CreateObject("System.Collections.ArrayList")
'number
'InputArray = Array(6, 5, 3, 4, 2, 1)
' adding the elements in the array to array_list
For Each element In InputArray
arr.Add element
Next
'sorting happens ) VOILA CE QUE JE CHERCHAIS!!!
arr.Sort
'Converting ArrayList to an array
'so now a sorted array of elements is stored in the array sorted_array.
sorted_array = arr.toarray
End Function
en fait, je recherchais "system.collections.arraylist"... pour l'adapter ensuite à mes comboboxes en passant aussi par un dictionnaire qui me permettait d'avoir des valeurs uniques.
bonne soirée, et merci de votre aide.
Jean-Noel