L
Sub a()
Range("E3:P3").SpecialCells(xlCellTypeConstants, 1).Copy Range("E11")
Range("E4:P4").SpecialCells(xlCellTypeConstants, 1).Copy Range("K11")
Range("E11:P11").Sort Range("E11:P11"), Order1:=xlAscending, Orientation:=xlLeftToRight
End Sub
Sub b()
Dim DerCol As Long, plg As Range
Rows(6).Clear
[E3].Resize(, 12).SpecialCells(2, 1).Copy [E3].Offset(3)
DerCol = Cells([E3].Row + 3, Columns.Count).End(xlToLeft).Column + 1
[E3].Offset(1).Resize(, 12).SpecialCells(2, 1).Copy Cells([E3].Row + 3, DerCol)
Set plg = Cells(Rows.Count, "E").End(xlUp).Resize(, 12)
plg.Sort Key1:=plg, Order1:=xlAscending, Orientation:=xlLeftToRight
End Sub
Oui.Est-ce possible de ne pas effacer la ligne 6 au complet mais seulement entre E6 et P6
Sub c()
Dim DerCol As Long, plg As Range
[E6:P6] = Empty
[E3].Resize(, 12).SpecialCells(2, 1).Copy [E3].Offset(3)
DerCol = Cells([E3].Row + 3, Columns.Count).End(xlToLeft).Column + 1
[E3].Offset(1).Resize(, 12).SpecialCells(2, 1).Copy Cells([E3].Row + 3, DerCol)
Set plg = Cells(Rows.Count, "E").End(xlUp).Resize(, 12)
plg.Sort Key1:=plg, Order1:=xlAscending, Orientation:=xlLeftToRight
End Sub
Penche plutôt du côté de VBA, que des formules. Mais je me soigne.
[ATTENTION]
Pratique l'humour à froid et l'ironie mordante.
Envers autrui comme envers moi-même.