vba code to add X rows for each selected row
I devised the below vba code, (a modified version of the code posted here: https://trumpexcel.com/insert-blank-row-after-every-row/ ) to automatically enter X number of rows after each selected row on a worksheet.
Change the number at the end of
EntireRow.Resize(6).
to set the number of rows you want to insert, then increase the number after:
ActiveCell.Offset(7, 0)
by one more number than the number of rows you want to add.
Sub InsertAlternateRows()
'This code will insert a row after every row in the selection
'This code has been created by Sumit Bansal from trumpexcel.com
Dim rng As Range
Dim CountRow As Integer
Dim i As Integer
Set rng = Selection
CountRow = rng.EntireRow.Count
For i = 1 To CountRow
ActiveCell.Offset(1, 0).EntireRow.Resize(6).Insert
ActiveCell.Offset(7, 0).Select
Next i
End Sub
代发外链 提权重点击找我;
谷歌蜘蛛池 谷歌蜘蛛池;
Fortune Tiger…
Fortune Tiger…
谷歌权重提升/ 谷歌权重提升;
谷歌seo 谷歌seo;
谷歌霸屏 谷歌霸屏
蜘蛛池 蜘蛛池
谷歌快排 谷歌快排
Google外链 Google外链
谷歌留痕 谷歌留痕
Gái Gọi…
Gái Gọi…
Dịch Vụ…
谷歌霸屏 谷歌霸屏
负面删除 负面删除
币圈推广 币圈推广
Google权重提升 Google权重提升
Google外链 Google外链
google留痕 google留痕
代发外链 提权重点击找我;
游戏推广 游戏推广;
Fortune Tiger Fortune Tiger;
Fortune Tiger Slots Fortune…
谷歌马甲包/ 谷歌马甲包;
谷歌霸屏 谷歌霸屏;
מכונות ETPU מכונות ETPU;
;ماكينات اي تي بي…
آلات إي بي بي…
ETPU maşınları ETPU maşınları;
ETPUマシン ETPUマシン;
ETPU 기계 ETPU 기계;
代发外链 提权重点击找我;
google留痕 google留痕;
Fortune Tiger Fortune Tiger;
Fortune Tiger Fortune Tiger;
Fortune Tiger Slots Fortune…
站群/ 站群;
万事达U卡办理 万事达U卡办理;
VISA银联U卡办理 VISA银联U卡办理;
U卡办理 U卡办理;
万事达U卡办理 万事达U卡办理;
VISA银联U卡办理 VISA银联U卡办理;
U卡办理 U卡办理;
온라인 슬롯 온라인 슬롯;
온라인카지노 온라인카지노;
바카라사이트 바카라사이트;
EPS Machine EPS Machine;
EPS Machine EPS Machine;
EPS Machine EPS Machine;
EPS Machine EPS Machine;