When I run the code below I get an error: Paste Special method of Range class failed. Any idea why this may be? The line i get this error on is marked with "->>"
    For i = 2 To p
        For n = 1 To shiftop.Cells(i, 3).Value
            With shiftop
                .Range(.Cells(i, 1), .Cells(i, 6)).Copy
            End With
            ->>shiftlines.Range(Cells(q, 1), Cells(q, 6)).PasteSpecial Paste = xlPasteValues
            q = q + 1
        Next n
    q = wkb.Worksheets("Shift Lines").Range("A" & Rows.Count).End(xlUp).Row
    Next i
