Sub date
Dim DTE as Date
MBox = InputBox(“Enter Friday date”)
If IsDate(MBox) Then
DTE = CDate(MBox)
Range(“F” & Rows.Count).End(xlUp).Offset(1).Select
Selection.Insert Shift:=xlDown
Selection.Insert Shift:=xlDown
Else
MsgBox(“This isn’t a date. Try again.”)
End if
End sub
I need the code to add two rows after it finds the date the user enters in the input box and then add up the values in column D. I realize the range row is incorrect but I am not sure how to insert the rows after the date I entered.