Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
insert multiple cells every ### rows
How do I insert multiple rows between every row in a column? I have a
column with data and I want to insert 5 rows between each row. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
insert multiple cells every ### rows
Sub insertfiverows()
For i = Cells(rows.Count, "a").End(xlUp).Row To 2 Step -1 rows(i).Resize(5).Insert Next i End Sub -- Don Guillett Microsoft MVP Excel SalesAid Software wrote in message ... How do I insert multiple rows between every row in a column? I have a column with data and I want to insert 5 rows between each row. |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
insert multiple cells every ### rows
Sub InsrtRws() 'Inserts blank rows
lastRow = ActiveSheet.Cells(Rows.Count, 1).End(xlUp).Row For i = lastRow To 2 Step -1 x = Cells(i, 1).Value If x 0 Then With ActiveSheet .Range(.Cells(i, 1), .Cells(i + 4, 1)).EntireRow.Insert End With End If Next End Sub "Don Guillett" wrote: Sub insertfiverows() For i = Cells(rows.Count, "a").End(xlUp).Row To 2 Step -1 rows(i).Resize(5).Insert Next i End Sub -- Don Guillett Microsoft MVP Excel SalesAid Software wrote in message ... How do I insert multiple rows between every row in a column? I have a column with data and I want to insert 5 rows between each row. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Insert multiple rows | Excel Discussion (Misc queries) | |||
insert rows and update linked cells in multiple workbooks | Excel Discussion (Misc queries) | |||
how do insert multiple rows in between multiple lines | Excel Discussion (Misc queries) | |||
Insert Multiple rows | Setting up and Configuration of Excel | |||
Insert Multiple Rows | Excel Discussion (Misc queries) |