1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| Private Sub Worksheet_Change(ByVal Target As Range)
Dim Ligne As Long, Plage As Range, C As Range
Dim Tabl As Variant
If Target.Address = "$D$1" And Target.Value <> "" Then
With Sheets("Suivi livrables")
Tabl = .Range("A7", .Cells(.Rows.Count, 1).End(xlUp)).Resize(, 121)
End With
With Sheets("Foams FNR export")
Ligne = .Cells(.Rows.Count, 1).End(xlUp).Row
For i = 1 To UBound(Tabl, 1)
If Tabl(i, 17) = .[D1] Or Tabl(i, 19) = .[D1] Or Tabl(i, 23) = .[D1] Then
Ligne = Ligne + 1
Tabl(i, 5) = .Cells(Ligne, 2)
'etc.
End If
Next i
End With
End If
End Sub |
Partager