Bonjour,
Tout est dans le titre.. Un gars m'a vachement bien aidé pour trouver le code ci - dessous.
Il rappatrie les infos d'une Feuil1 vers la Feuil2 sa marche très bien.
Sauf que !!
Il faudrait que je l'adapte quelque peut:
1) Les informations à extraire sont sur la même ligne mais 1 case sur 3 depuis la colonne 5.
2) Dès la première case vide rencontré il faudrait arrêter l'import de données. J'ai un total en bout de ligne que je ne veux pas importer.
Je ne joins pas de fichier car je pense que c'est juste quelques instructions que je ne connais pas donc peut importe un fichier exemple.
Private Sub Worksheet_Change(ByVal Target As Range)
Dim C As Range
Dim LigC As Long
Dim ColS As Integer, DerColS As Integer
If Target.Count > 1 Then Exit Sub
If Target.Address = "$D$5" Then
Range("A8", Range("A8").End(xlDown)).Clear
LigC = 8
With Worksheets("RECAP.")
Set C = .Columns(3).Find(Target.Value, , xlValues, xlWhole)
If Not C Is Nothing Then
DerColS = .Cells(C.Row, Columns.Count).End(xlToLeft).Column
If DerColS > 1 Then
For ColS = 5 To DerColS
Cells(LigC, 1) = .Cells(C.Row, ColS).Value
LigC = LigC + 1
Next ColS
End If
End If
End With
End If
End Sub
Mercid e vôtre aide !!