Bonjour Antony, le Forum,
cette macro est a inserer dans un module de overview-spares-indus.xlsm et a lancer avec l'autre fichier ouvert.
Je n'envoie pas le fichier car j'ai du desactivé les liaisons de tes fichiers.
Sub Macro1()
Dim tb1
Dim tb2
Dim i As Integer
Dim j As Integer
j = 0
i = 0
Windows("lob-rechanges.xlsx").Activate
tb1 = Sheets("RECHANGES").Range("A1").CurrentRegion
tb2 = tb1
For i = 1 To UBound(tb1)
If tb1(i, 13) = "NON PRESENT INDUS" Then
j = j + 1
tb2(j, 1) = tb1(i, 6)
tb2(j, 2) = tb1(i, 8)
End If
i = i + 1
Next
Windows("overview-spares-indus.xlsm").Activate
Sheets("Commandes").Select
derligne = Range("B" & Rows.Count).End(xlUp).Row + 1
Range("B" & derligne & ":C" & j + derligne) = tb2
End Sub
Cordialement