insert a new row at the bottom macro

nats1582

New Member
Joined
Jan 22, 2014
Messages
1
Hi,

I am trying to insert a new row for each day in ascending order going down, this is for a daily process. However it works that the day goes back one each time e.g. 17, 18, 19 23, 22, 21 20.

How can I make the macro insert a new line at the bottom not the same place?

Cheers,

Nathan
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
'get the last used row in column A (A=1)
MyLastRow = Cells(Rows.Count, 1).End(xlUp).Row
' insert date in next row down
cells(MyLastRow+1,1).Value=Format(now(),"DD-MMM-YYYY")
 
Upvote 0

Forum statistics

Threads
1,216,115
Messages
6,128,923
Members
449,479
Latest member
nana abanyin

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