Sub copie_macro()
Sheets("récap").Select
Rows("2:2").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Delete Shift:=xlUp
Range("A1").Select
Dim ws As Worksheet
For Each ws In Worksheets
If ws.Name <> "récap" And ws.Name <> "Modèle" And ws.Name <> "Liste des articles" Then
Application.ScreenUpdating = False
ws.Activate
Range("A19:F23").Copy
Sheets("récap").Activate
Range("B65536").End(xlUp).Offset(1, 0).Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
ws.Activate
Application.CutCopyMode = False
End If
Next ws
Sheets("récap").Select
For lin = Cells.SpecialCells(xlCellTypeLastCell).Row To 1 Step -1
If Rows(lin).Find("*") Is Nothing Then Rows(lin).Delete
Next lin
Range("A1").Select
Selection.AutoFill Destination:=Range("A1:A2000")
Range("A1:A2000").Select
Range("A1").Select
Columns("A:G").Select
ActiveWorkbook.Worksheets("récap").Sort.SortFields.Clear
ActiveWorkbook.Worksheets("récap").Sort.SortFields.Add Key:=Range("D2:D2000") _
, SortOn:=xlSortOnValues, Order:=xlAscending, DataOption:=xlSortNormal
ActiveWorkbook.Worksheets("récap").Sort.SortFields.Add Key:=Range("A2:A2000") _
, SortOn:=xlSortOnValues, Order:=xlAscending, DataOption:=xlSortNormal
With ActiveWorkbook.Worksheets("récap").Sort
.SetRange Range("A1:G2000")
.Header = xlYes
.MatchCase = False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
.Apply
End With
Dim i As Integer
With ThisWorkbook.Sheets("récap")
'Précisez le nom de votre feuille
For i = .Range("A" & .Rows.Count).End(xlUp).Row To 2 Step -1
'je travaille sur la colonne c
'Rows.count permet de retourner le nombre de ligne de la plage range
If .Range("F" & i).Value = "" Then
.Rows(i).Delete
End If
Next i
End With
Range("A1").Select
Sheets(1).Activate
End Sub