Inserting a blank row between rows of data

M

Michael Styles

I have three Excel 2007 lists, around 200 rows each. I've now found I need
to insert a blank row after each list entry. Is there any easy way to do
this? I'm pretty decent with Excel, but don't know VBA. I thought of
recording a macro, but didn't know how to edit it so that I wouldn't have to
repeat the same action 200 times for the first list. Can anyone help?
 
D

Don Guillett

Sub insertrows()
dim i as long
For i = Cells(Rows.Count, 1).End(xlUp).Row To 2 Step -1
Rows(i).Insert
Next i
End Sub
 
M

Michael Styles

Thanks Don.

Don Guillett said:
Sub insertrows()
dim i as long
For i = Cells(Rows.Count, 1).End(xlUp).Row To 2 Step -1
Rows(i).Insert
Next i
End Sub
 
B

Bob Umlas

Crooks! :)
From my book, page 111!
Note on the video: Actually, it's ready to sort without changing the cells
at the bottom to that formula (=cells above +1)
Bob Umlas
Excel MVP
 
Z

Zaidy036

I have three Excel 2007 lists, around 200 rows each. I've now found I
need to insert a blank row after each list entry. Is there any easy way
to do this? I'm pretty decent with Excel, but don't know VBA. I thought
of recording a macro, but didn't know how to edit it so that I wouldn't
have to repeat the same action 200 times for the first list. Can anyone
help?
Free ASAP Utilities has this function.

Eric
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top