airingersoll
New Member
- Joined
- Sep 8, 2019
- Messages
- 5
So I'm trying to create a leave/vacation tracker for my employees/coworkers, and I want to automate the worksheet so it automatically deletes(and shifts) certain cells every day. This is so the tracker remains up to date without anyone having to physical delete the cells themselves.
There is a forum on this site that explains how to do it, but I could never get it to work. Only thing I could figure out is how to auto-delete content and not the entire cell itself.
This is what I used.
Private Sub workbook_Open()
If Sheets("Aux").Range("A1").Value < Date Then
Sheets("LEAVE TRACKER").Range("D3:D34").Delete
End If
Sheets("Aux").Range("A1").Value = Date
End Sub
Any help would be greatly appreciated.
There is a forum on this site that explains how to do it, but I could never get it to work. Only thing I could figure out is how to auto-delete content and not the entire cell itself.
This is what I used.
Private Sub workbook_Open()
If Sheets("Aux").Range("A1").Value < Date Then
Sheets("LEAVE TRACKER").Range("D3:D34").Delete
End If
Sheets("Aux").Range("A1").Value = Date
End Sub
Any help would be greatly appreciated.