Inserting Alternate Rows

rommelq

New Member
Joined
Aug 26, 2002
Messages
47
I have several number of rows filled with data. I decided to insert a blank row after each filled row. But it would take time for me to insert one blank row and do it again for and after each filled row. How can I do it with with just a few clicks?
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
rommelq


assuming your data's in column a, in b1 enter a '1' and autofill down to the end of your data (right click on the fill handle on the lower right hand corner of the cell, drag down as far as required and release, selecting 'fill series' from the drop down menu) select and copy this range directly below the first range you have created (ie. autofill b1-b100, copy b1-b100 to b101. select columns a and b, and sort by column b.
delete data in column b.
hth
 
Upvote 0
I created this macro.
It will start at a1 and insert a row above it. Please replace a1 with the first cell you want a blank row placed above. And always save your document before peforming a macro!
It will create alternative rows through an entier spreadsheet
Hope you can work eith it

Sub insertrows()
Application.ScreenUpdating = False
Range("a1").Select
For Each rw In ActiveSheet.Rows
Selection.Insert Shift:=xlDown
ActiveCell.Offset(2, 0).Activate
Next rw
Application.ScreenUpdating = True
End Sub
This message was edited by Qroozn on 2002-08-28 18:32
 
Upvote 0

Forum statistics

Threads
1,214,849
Messages
6,121,922
Members
449,056
Latest member
denissimo

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