Insert multiple copied rows at fixed intervals
Closed
gizework
Posts
5
Registration date
Saturday February 24, 2018
Status
Member
Last seen
March 7, 2018
-
Updated on Feb 26, 2018 at 04:08 AM
gizework Posts 5 Registration date Saturday February 24, 2018 Status Member Last seen March 7, 2018 - Mar 7, 2018 at 12:25 AM
gizework Posts 5 Registration date Saturday February 24, 2018 Status Member Last seen March 7, 2018 - Mar 7, 2018 at 12:25 AM
Related:
- How to insert specific number of rows at fixed intervals in excel
- Number to words in excel - Guide
- Insert gif in excel - Guide
- How to insert photo in word for resume - Guide
- How to insert check mark in word - Guide
- How to insert watermark in word - Guide
2 responses
TrowaD
Posts
2921
Registration date
Sunday September 12, 2010
Status
Moderator
Last seen
December 27, 2022
555
Feb 26, 2018 at 12:23 PM
Feb 26, 2018 at 12:23 PM
Hi Gizework,
You aren't very specific. Give this code a try (it's just a start):
Best regards,
Trowa
You aren't very specific. Give this code a try (it's just a start):
Sub RunMe() Dim sRow As Range Dim nTimes, fInterval, mLimit, x, y As Integer Set sRow = Application.InputBox("Select row(s)", Type:=8) nTimes = InputBox("How many times would you like to insert selected row(s)", "Repeat n times") fInterval = InputBox("What is the fixed interval?:", "Input fixed interval") mLimit = InputBox("Input the row you don't want to insert past:?") Do y = y + fInterval For x = nTimes To 1 Step -1 sRow.Copy Rows(y).Insert Next x Loop While y < mLimit End Sub
Best regards,
Trowa
Feb 26, 2018 at 07:38 PM
Updated on Feb 27, 2018 at 12:38 AM