robcunliffe
Technical User
Hello,
Using Excel xp. On Windows XP. Excel VBA.
I would like to insert 6 blank rows after each current row.
So if i have data in rows 1 to 1000 i would like to insert 6 blank rows between the current rows.
Can anyone offer any help?
I have a recorded macro that looks like this:
Rows("1:1").Select
Selection.Insert Shift:=xlDown
Selection.Insert Shift:=xlDown
Selection.Insert Shift:=xlDown
Selection.Insert Shift:=xlDown
Selection.Insert Shift:=xlDown
Selection.Insert Shift:=xlDown
Rows("7:7").Select
Selection.Insert Shift:=xlDown
Selection.Insert Shift:=xlDown
Selection.Insert Shift:=xlDown
Selection.Insert Shift:=xlDown
Selection.Insert Shift:=xlDown
Selection.Insert Shift:=xlDown
But i dont think this is the right approach. I think i need a loop of some sort?
Many thanks, any help gratefully appreciated.
Rob Cunliffe
Using Excel xp. On Windows XP. Excel VBA.
I would like to insert 6 blank rows after each current row.
So if i have data in rows 1 to 1000 i would like to insert 6 blank rows between the current rows.
Can anyone offer any help?
I have a recorded macro that looks like this:
Rows("1:1").Select
Selection.Insert Shift:=xlDown
Selection.Insert Shift:=xlDown
Selection.Insert Shift:=xlDown
Selection.Insert Shift:=xlDown
Selection.Insert Shift:=xlDown
Selection.Insert Shift:=xlDown
Rows("7:7").Select
Selection.Insert Shift:=xlDown
Selection.Insert Shift:=xlDown
Selection.Insert Shift:=xlDown
Selection.Insert Shift:=xlDown
Selection.Insert Shift:=xlDown
Selection.Insert Shift:=xlDown
But i dont think this is the right approach. I think i need a loop of some sort?
Many thanks, any help gratefully appreciated.
Rob Cunliffe