Bonjour,
Sub suppCol()
Dim col As Long, derlig As Long
derlig = Cells(Rows.Count, 1).End(xlUp).Row
For col = 31 To 24 Step -1
If Application.Count(Columns(col)) = 0 Then
Columns(col).EntireColumn.Delete
Else
Cells(derlig + 1, col).Formula = "=sum(" & Cells(2, col).Address & ":" & Cells(derlig, col).Address & ")"
End If
Next col
End Sub
N'oublie pas de mettre en résolu si ok.
eric