Trying to automate the copying of some rows, fails on the paste special section, and I cant figure out why!!
Any help would be great.
Thanks
Code:
Sub test()
Dim LR As Long, i As Long
With Sheets("Analysis")
LR = .Range("A" & Rows.Count).End(xlUp).Row
For i = 12 To LR
If .Range("K" & i).Value = "CORB01" Then .Rows(i).Copy
Sheets("Sheet6").Range("A" & Rows.Count).End(xlUp).Offset(1).PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:=False, Transpose:=True
Sheets("Analysis").Select
Next i
End With
End Sub
Any help would be great.
Thanks