jmthompson
Well-known Member
- Joined
- Mar 31, 2008
- Messages
- 966
This macro is skipping columns and I know it's because I should work from the last column back, but I don't have the brain power to fix it, help?
Code:
Sub MyMonth()
TheDate = Format(Now, "mmm yy")
LastColumn = Range("IV11").End(xlToLeft).Column
Dim c As Range
For Each c In Range([P1], Cells("1", Columns.Count).End(xlToLeft))
If c <> TheDate Then c.EntireColumn.Delete
Next c
End Sub