Insert blank row for every other row on worksheet

bradfordsmiths

New Member
Joined
Sep 11, 2011
Messages
8
On my worksheet I have several rows with data in them. My boss needs me to insert a blank row in between each of the rows. Is there a simple & fast way to do this besides manually inserting each row. I am using Excel 2007. :confused:
 
Last edited:

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
I'm new to writing code so I'm sure there is a cleaner way to do it, but this works for me...it runs through 10 rows and puts a blank in between each.

Sub Insert_Rows()
Dim n As Integer
For n = 1 To 10 'change 10 to however many times you want it to run
Selection.EntireRow.Insert
ActiveCell.Offset(2).Select
Next n
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,508
Messages
6,179,189
Members
452,893
Latest member
denay

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