How to automatically insert a row everyday?

j_brubaker

New Member
Joined
Aug 9, 2018
Messages
14
I have the equation: =today()-row()+3 starting in cell A3 and continuing down column A. Everyday I am manually inserting numbers within row 3 in columns B-Q. What I am looking to do is to have excel automatically shift that row down everyday so that I can enter new numbers into row 3 (next to today's date). Everyday excel needs to enter a new row above row 3 while keeping the same equation in column A (=today()-row()+3). Can this be done? And if so, how?

Thanks in advance,
Josh
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
.
Paste this macro into a Routine Module :

Code:
Option Explicit


Sub InsertRow()
    Sheets("Sheet1").Rows("3:3").Insert Shift:=xlDown
End Sub

Run the macro from a Command Button placed on the worksheet.
 
Upvote 0
I have the equation: =today()-row()+3 starting in cell A3 and continuing down column A. Everyday I am manually inserting numbers within row 3 in columns B-Q. What I am looking to do is to have excel automatically shift that row down everyday so that I can enter new numbers into row 3 (next to today's date). Everyday excel needs to enter a new row above row 3 while keeping the same equation in column A (=today()-row()+3). Can this be done? And if so, how?

Thanks in advance,
Josh

The code can be obtained easily from the macro recorder.
Or :
Code:
Sub InsertRow()
Rows(3).Insert
[A3].Formula = "=TODAY()-ROW()-3"
End Sub
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,636
Latest member
laura12345

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top