how to insert rows inbetween rows of data ?

A

Azeem

I have a set of continuous rows of data
i need to insert 4 blank rows in between these rows. I do not know how to
run a VB macro in xl. so if u r suggesting a solution using a macro, then
also pls tell me how to run it in xl.
Thanks.
 
J

Jacob Skaria

With continuous data in colA...try the below macro. If you are new to macros..

--Set the Security level to low/medium in (Tools|Macro|Security).
--From workbook launch VBE using short-key Alt+F11.
--From menu 'Insert' a module and paste the below code.
--Get back to Workbook.
--Run macro from Tools|Macro|Run <selected macro()>

Sub MyMacro()
Dim lngRow As Long
For lngRow = Cells(Rows.Count, "A").End(xlUp).Row To 2 Step -1
Rows(lngRow).EntireRow.Resize(4).Insert
Next
End Sub

If this post helps click Yes
 

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