Bonjour
Je voudrais savoir, s'l y a un moyen plus rapide de convertir un range en tableau 1 D, que la macro ci-dessous.
merci
Sub DeuxD_Array_Convert_UN_D_Array_2()
Dim tblo_Un_D()
Dim C As Range
Set A = [A1:E8]
For Each C In A
tot = tot + 1
For Z = 1 To tot
ReDim Preserve tblo_Un_D(tot)
tblo_Un_D(tot) = C.Value
Cells(25, 5) = UBound(tblo_Un_D)
Cells(25, 10).Resize(, UBound(tblo_Un_D) + 1) = tblo_Un_D
Next
Next
End Sub
Je voudrais savoir, s'l y a un moyen plus rapide de convertir un range en tableau 1 D, que la macro ci-dessous.
merci
Sub DeuxD_Array_Convert_UN_D_Array_2()
Dim tblo_Un_D()
Dim C As Range
Set A = [A1:E8]
For Each C In A
tot = tot + 1
For Z = 1 To tot
ReDim Preserve tblo_Un_D(tot)
tblo_Un_D(tot) = C.Value
Cells(25, 5) = UBound(tblo_Un_D)
Cells(25, 10).Resize(, UBound(tblo_Un_D) + 1) = tblo_Un_D
Next
Next
End Sub