1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| Sub Macro()
Dim Wsh As Worksheet, Plage, DrLig As Long
Application.ScreenUpdating = False
For Each Wsh In ActiveWorkbook.Worksheets
If Wsh.Name <> "RECAP" Then
If Wsh.Name <> "DONNEES" Then
If Wsh.Name <> "TARIFS" Then
With Wsh
DrLig = .Range("L" & Rows.Count).End(xlUp).Row + 1
If DrLig >= 12 Then
Plage = .Range("A12:T" & DrLig).Value
Else
Plage = 0
End If
End With
If IsArray(Plage) Then
With Sheets("RECAP")
DrLig = .Range("L" & Rows.Count).End(xlUp).Row + 1
.Range("A" & DrLig).Resize(UBound(Plage, 1), UBound(Plage, 2)).Value = Plage
End With
End If
End If
End If
End If
Next Wsh |