Hello,
First time poster, long time listener. I'm am looking to do the below:
1) Formulas located in A2:S43
2) Copy/Paste those formulas in row 46 (leaving row 44 & 45 blank)
3) Copy A46:S87 (just pasted box), and paste the values and formatting into itself (A46:S87)
4) Loop 1-3 times the value listed in cell A1
Looking to do this because leaving formulas and looping a large amount of that size is hindering processing speed. Ideally, the pasted boxes below would calculate formulas, then return values in the same space. Below is the round-about way I've tried this:
Thanks for any insight!
First time poster, long time listener. I'm am looking to do the below:
1) Formulas located in A2:S43
2) Copy/Paste those formulas in row 46 (leaving row 44 & 45 blank)
3) Copy A46:S87 (just pasted box), and paste the values and formatting into itself (A46:S87)
4) Loop 1-3 times the value listed in cell A1
Looking to do this because leaving formulas and looping a large amount of that size is hindering processing speed. Ideally, the pasted boxes below would calculate formulas, then return values in the same space. Below is the round-about way I've tried this:
Code:
Sub Calc_Sheet_Setup()
'Copy/Pastes A2:S43 the number of times equaling value from cell A1 in Calc Sheet
Sheets("Calc Sheet").Select
Application.ScreenUpdating = False
Calculation = xlCalculationManual
For i = 1 To Worksheets("Calc Sheet").Range("A1").Value
Range("A2:S43").Copy Destination:=Range("A2").Offset(44 * i)
Next i
'Copy/Paste two pasted boxes (A46:S131) values to the right (Column U), then cut that over onto A46
Range("A46:S131").Select
Selection.Copy
Range("U46").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
Range("U46").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Selection.PasteSpecial Paste:=xlPasteFormats, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
Application.CutCopyMode = False
Selection.Cut
Range("A46").Select
ActiveSheet.Paste
Application.ScreenUpdating = True
Calculation = xlCalculationAutomatic
End Sub
Thanks for any insight!