ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   how to insert rows inbetween rows of data ? (https://www.excelbanter.com/excel-worksheet-functions/246649-how-insert-rows-inbetween-rows-data.html)

Azeem

how to insert rows inbetween rows of data ?
 
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.

Jacob Skaria

how to insert rows inbetween rows of data ?
 
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
---------------
Jacob Skaria


"Azeem" wrote:

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.



All times are GMT +1. The time now is 04:36 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com