Cross-posted at https://www.mrexcel.com/board/thread...-code.1219627/ --6SJ
I am looking to apply a timestamp, and automatically delete the row when it is 4 years old. I can make it work to automatically delete the row within a 24 time period, but I cannot set larger periods or I am presented with a type mismatch.
This is the code I was usingI identified the issue was quantifying it as time value so attempted to change it to the following:Please Login or Register to view this content.
If Now > stampcell.Value2 + DateAdd("d", 1, stampcell.Value2) Then
This was so I could test it before changing it to 6 years.
Is there anyway for me to do this?
Bookmarks