billandrew
Well-known Member
- Joined
- Mar 9, 2014
- Messages
- 743
Could someone explain why this coed to delete every other column does not work.
Sub delete_every_other_column()
lastcol = Cells(1, columns.Count).End(xlToLeft).Column
For c = lastcol To 2 Step -2
Cells(1, c).EntireColumn.Delete
Next c
End Sub
Sub delete_every_other_column()
lastcol = Cells(1, columns.Count).End(xlToLeft).Column
For c = lastcol To 2 Step -2
Cells(1, c).EntireColumn.Delete
Next c
End Sub