The loop copies formatted sections of code and inserts them x times. Doing it less than 10 times is fast, but it quickly starts to slow down to the point where, at about 60 or so it takes about a second for each insert, and continues to slow down from there. What could be causing it to get progressively slower?
While x < num
Debug.Print ("Running: " & x)
With Sheets(inoc)
.Activate
.Rows("12:15").Select
Selection.Copy
Selection.Insert Shift:=xlDown
End With
With Sheets(count)
.Activate
.Rows("17:28").Select
Selection.Copy
Selection.Insert Shift:=xlDown
.Range("C29").Value = "='Inoculation and Incubation'!B17"
End With
x = x + 1
Application.CutCopyMode = False
Wend