MarkReddell
Board Regular
- Joined
- Sep 1, 2011
- Messages
- 210
- Office Version
- 365
- Platform
- Windows
- Mobile
Hello Everyone! I need a macro keep deleting until the value is met!!! I have this code, but it stops after the first column is deleted instead of deleting the next new Column H until it = Today. How do I get it to Loop? Please, any help???
Code:
Sub DeleteSpecifcColumn()
Set MR = Range("H4")
For Each cell In MR
If cell.Value < Date Then cell.EntireColumn.Delete
Next
End Sub
Last edited by a moderator: