I have the following macro to enter in X amount of lines after Xth row, which works perfect:
Option Explicit
Sub InsertRows()
Dim AddRws As Long
Dim Spacing As Long
Dim Rw As Long
Spacing = Application.InputBox("Add empty rows after every X row, what is the value of X?", "Spacing", 1, Type:=1)
If Spacing = 0 Then Exit Sub
AddRws = Application.InputBox("Add how many rows to insert?", "Insert", 13, Type:=1)
If AddRws = 0 Then Exit Sub
Rw = Spacing + 1
Do
Rows(Rw).Resize(AddRws).Insert xlShiftDown
Rw = Rw + Spacing + AddRws
Loop Until Range("A" & Rw) = ""
End Sub
Now how do I tell it to paste the same data on the those new lines, so i dont have to manually copy and paste 200 times?
Option Explicit
Sub InsertRows()
Dim AddRws As Long
Dim Spacing As Long
Dim Rw As Long
Spacing = Application.InputBox("Add empty rows after every X row, what is the value of X?", "Spacing", 1, Type:=1)
If Spacing = 0 Then Exit Sub
AddRws = Application.InputBox("Add how many rows to insert?", "Insert", 13, Type:=1)
If AddRws = 0 Then Exit Sub
Rw = Spacing + 1
Do
Rows(Rw).Resize(AddRws).Insert xlShiftDown
Rw = Rw + Spacing + AddRws
Loop Until Range("A" & Rw) = ""
End Sub
Now how do I tell it to paste the same data on the those new lines, so i dont have to manually copy and paste 200 times?