Sub KillTwo()
Dim rng1 As Range
Dim lngRow As Long
Application.ScreenUpdating = False
Set rng1 = Intersect(ActiveSheet.UsedRange, Rows(2))
For lngRow = rng1.Columns.Count To 1 Step -1
If rng1.Cells(lngRow).Value = "0" Then rng1.Cells(lngRow).EntireColumn.Delete
Next lngRow
Application.ScreenUpdating = True
End Sub
|