Bonjour,
Je cherche à utiliser la fonction redim preserve pour un tableau à deux dimensions.
Sub formulaire_manquant()
Dim tab_form() As Variant
With Sheets("Planning")
For i = 2 To .Cells(Rows.Count, 1).End(xlUp).Row
If .Cells(i, 3) = "N" Then
ReDim Preserve tab_form(1 To n, 1 To 2)
tab_form(n, 0) = .Cells(i, 1)
tab_form(n, 1) = .Cells(i, 2)
N=N+1
End If
Next i
With Sheets("formulaire_manquant")
Range("A1:B" & n) = tab_form
End With
End With
End Sub
Si je peux avoir un petit coup de main je vous en serait reconnaissant.
Je sais que je pourrais ne pas passer par un array mais j'aimerais bien maitriser cette fonctionnalité et trouver les solutions les plus optimales.
Je vous joints un petit fichier tout se passe dans :
–> Module : Formulaire manquant, sub Formulaire_manquant