I am having difficulty creating a macro that will copy a row of data from one worksheet to another, then instantly delete the copied data source and move up the rows underneath to clear the leftover blank/empty row. The context of this workbook is a request tracker, once a request has a completion date, after a certain period of time (30 days), the request will be copied over to a "historical requests" sheet. Then immediately after, the originally copied data on the active page will be deleted and everything else "moved up" to clear out the gap left behind. Here is what I have already developed, with some help of course... If someone could help, it would be greatly appreciated.
Public Sub DataBackup()
Dim RowDate
Dim CurrentDate
Dim Interval
Dim CurrentAddress
Dim ValueCellRange As Range
Dim ValueCell As Range
Dim ws As Worksheet
'Interval set to an appropriate number of days
Interval = 30
CurrentDate = Now()
For Each ws In Worksheets
Set ValueCellRange = ws.Range("U3:U130")
For Each ValueCell In ValueCellRange
If ValueCell.Value <> "" Then
If CurrentDate - ValueCell.Value >= Interval Then
Rows(ActiveCell.Row).Select
Sheets("Historical Requests").Select
ActiveSheet.Paste
ValueCell.EntireRow.ClearContents
End If
End If
Next ValueCell
Next ws
'Clear variable value for next initialization
Set ValueCell = Nothing
End Sub