Bonjour
La macro qui correspond à ta demande et qui se met dans thisworbook
Private Sub Workbook_Open()
Sheets("NbrGW").Select
Dim i As Long, j As Integer, c As Range, adresse1 As String
For j = 5 To Cells(1, Columns.Count).End(xlToLeft).Column
If Cells(1, j).Value < Date Then Columns(j).Hidden = True Else Exit For
Next
For i = 3 To Range("A" & Rows.Count).End(xlUp).Row
Range("D" & i).Value = WorksheetFunction.Sum(Range(Cells(i, j), Cells(i, j + 3)))
With Worksheets("RECAP").Range("J4:J" & Worksheets("RECAP").Range("A" & Rows.Count).End(xlUp).Row)
Set c = .Find(Range("A" & i).Value, LookIn:=xlValues, lookat:=xlWhole)
If Not c Is Nothing Then
adresse1 = c.Address
Do
Sheets("RECAP").Range("BC" & c.Row) = Cells(j, i).Value
Sheets("RECAP").Range("BF" & c.Row) = Cells(j + 1, i).Value
Sheets("RECAP").Range("BI" & c.Row) = Cells(j + 2, i).Value
Set c = .FindNext(c)
If c.Address = adresse1 Then Exit Do
Loop While Not c Is Nothing
End If
End With
Next
End Sub
Par contre une appli comme ça j'en voudrais pas pour rien au monde... 10 x fois trop longue....
Tu devrais alléger sérieusement ta feuille récap...
A+ François