Bonjour,
Ci-contre un test :
Sub ENR()
Dim L%, K%, O%, RESULT As Range
With Worksheets("Feuille de calcul")
.[D6:G9].Copy
Worksheets("Données").[A1].PasteSpecial
For L = 16 To .Cells(.Rows.Count, 11).End(xlUp).Row
If .Cells(L, 11) >= .[F9] Then K = L: Exit For
Next L
For L = 16 To .Cells(.Rows.Count, 11).End(xlUp).Row
If .Cells(L, 15) >= .[F9] Then O = L: Exit For
Next L
Set RESULT = Application.Union(.Range("C12:O15"), .Range(.Cells(K, 3), .Cells(K, 15)), .Range(.Cells(O, 3), .Cells(O, 15)))
RESULT.Copy
End With
With Worksheets("Données")
.[A5].PasteSpecial xlPasteAll, , True
.[A5].PasteSpecial xlPasteValuesAndNumberFormats, , True
.Cells.FormatConditions.Delete
End With
End Sub
Impossible de copier coller les couches de la colonne B car vos cellules sont fusionnées. Je vous déconseille de travailler avec des cellules fusionnées qui sont difficiles à maîtriser sous Excel/VBA.
Cdlt,