Sub MM1()
Dim lc As Integer, c As Integer
lc = Cells(1, Columns.Count).End(xlToLeft).Column
For c = lc To 2 Step -1
If Cells(1, c).Value > Cells(1, 1) Then
Columns(c).Delete
End If
Next c
End Sub
Maybe this
Code:Sub MM1() Dim lc As Integer, c As Integer lc = Cells(1, Columns.Count).End(xlToLeft).Column For c = lc To 2 Step -1 If Cells(1, c).Value > Cells(1, 1) Then Columns(c).Delete End If Next c End Sub
Sub MM1()
Dim lc As Integer, c As Integer
lc = Cells(1, Columns.Count).End(xlToLeft).Column
For c = lc To 3 Step -1
If Cells(1, c).Value > Cells(1, 1) Then
Columns(c).Delete
End If
Next c
End Sub