General question about auto- adding first row?

indygo

Board Regular
Joined
Dec 2, 2013
Messages
126
Office Version
  1. 365
Platform
  1. Windows
Is it possible to record a macro to add new ROW after each entry?

This could be useful when we have a long list ordered by date and we have New items on top.


a1: title
a2: Empty (and adding new row here)
a3: first data row.


is is possible? because going down the list to cell number 23000 is a bit annoying.
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Hi,

With Excel ... everything is possible ...

Do you mean you would like to have a row automatically inserted ...?

If yes ... when should this happen ...???
 
Upvote 0
Hmm tricky question. Set's say you have one empty cell on top of a long list and you have copied 10 rows.
You select the cell and do ctrl+V and it adds 10 rows without removing the ones below.


Initialy I had automatic web scraping in mind and updating records so that new items would be on top.
 
Upvote 0
Hi again,

If the actual problem is to have "new items on top" ... there is no need to insert any row ... but to have an automatic sort ... :wink:
 
Upvote 0
Yes but sorting is different. As I understand I would still have to paste in the last row and THEN sort. But I want to avoid that. Just paste on top and make space for enough rows to be pasted.
 
Upvote 0
Try this:
Code:
        Range("A3").PasteSpecial Paste:=xlPasteValuesAndNumberFormats, Operation:= _
        xlNone, SkipBlanks:=False, Transpose:=False
    Rows("3:3").Insert Shift:=xlDown    ' I think this is what you want. It will leave row three empty for pasting or recording.
 
Upvote 0
If you copy N rows and Insert rather than Paste, Excel will shift the existing rows down to accommodate what has been copied.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,648
Messages
6,120,725
Members
448,987
Latest member
marion_davis

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