Private Sub Worksheet_Activate()
Dim col, n As Long, tablo
col = [{2,"N°";1,"Date";5,"Initiateur";9,"Mt_Initial";8,"Détails";6,"Dépenses(-)/Recettes";7,"";12,"Pointage"}]
Application.ScreenUpdating = False
Cells.Delete 'RAZ
For n = 1 To UBound(col)
Feuil1.[A5].CurrentRegion.Columns(col(n, 1)).Copy Cells(1, n)
Cells(1, n) = col(n, 2)
Next n
'---regroupement Dépenses/Recettes---
tablo = [A1].CurrentRegion.Columns(6).Resize(, 2) 'matrice, plus rapide
For n = 2 To UBound(tablo)
If tablo(n, 1) <> "" Then
If IsNumeric(CStr(tablo(n, 1))) Then tablo(n, 1) = -tablo(n, 1)
Else
tablo(n, 1) = tablo(n, 2)
End If
Next n
[F1].Resize(UBound(tablo)) = tablo
Columns(7).Delete
Columns.AutoFit 'ajustement largeur
End Sub