I have the following piece of code given by HansV. It is great and I use it all the time. What I'm now looking for is a way to do kind of the same thing where the code says to insert a page break above row 44, then go down 21 rows and insert a page break,
then down another 21 rows and insert a page break until it reaches row 1221. Does anyone have any ideas how to do this? NOTE: I have modified the following code to run as a macro by inserting the ranges into the variables, but this is the way the code came
from HansV.
Sub Vari_Copy()
' This sub allows for manually coping and pasting a range
Dim MyRange As Range
Dim StepValue As Long
Dim StopRow As Long
Dim Col As Long, X As Long
Set MyRange = Application.InputBox(Prompt:= _
"Please select a range to copy with your Mouse.", _
Title:="Specify range", Type:=8)
Col = MyRange.Cells(1).Column
StepValue = Application.InputBox(Prompt:= _
"Enter Step value.", _
Title:="Step Value", Type:=1)
StopRow = Application.InputBox(Prompt:= _
"Enter stop row.", _
Title:="Stop Row", Type:=1)
For X = MyRange.Row + StepValue To StopRow Step StepValue
MyRange.Copy
Cells(X, Col).PasteSpecial
Next
Application.CutCopyMode = False
End Sub