I have a tracker in Excel 2013 the has information in column a through n. I have formulas in Column I and N. So I do not have several blank rows at the bottom of my table. I would like only one blank row showing a all times. I am trying to make a Macro to add to an existing macro that will automatically add a blank row with the formulas to the next row after column D has a date entered in. My tracker looks similar to below
Once the start date is entered I have a macro it to automatically sort by date and put it in order. What can I do to the following code to always have a blank row at the bottom
I have attached a PNG of what I am working wiht
Thank you for your help
Once the start date is entered I have a macro it to automatically sort by date and put it in order. What can I do to the following code to always have a blank row at the bottom
I have attached a PNG of what I am working wiht
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
On Error Resume Next
If Not Intersect(Target, Range("D:D")) Is Nothing Then
Range("D1").Sort Key1:=Range("D2"), _
Order1:=xlAscending, Header:=xlYes, _
OrderCustom:=1, MatchCase:=False, _
Orientation:=xlTopToBottom
End If
End Sub
Thank you for your help
Attachments
Last edited by a moderator: