ich möchte alle Spalten per VBA löschen, die in der ersten Zeile keinen Eintrag enthalten.
Vielen Dank für jede Hilfe.
Grüße
Georg
Sub t()
Dim iSpalte As Integer
Application.ScreenUpdating = False
For iSpalte = 256 To 1 Step -1
If Cells(1, iSpalte) = "" Then Columns(iSpalte).Delete
Next iSpalte
Application.ScreenUpdating = True
End Sub
Sub Wegdamit()
For n = 256 To 1 Step -1
If Cells(1, n) = "" Then
Cells(1, n).EntireColumn.Delete
End If
Next n
End Sub