Hello, I'm attempting to copy data between workbooks. I'm not sure if this method is the most efficient but the columns in the workbooks are not in the same order so I am copying one at a time.
When I execute this code, it is copying 2 columns at a time instead of 1. I can't figure out why. If I can figure out how/why it is copying 2 columns instead of 1, then I can figure out how to do multiple columns at a time in the future, if needed. Thanks in advance for the help!
When I execute this code, it is copying 2 columns at a time instead of 1. I can't figure out why. If I can figure out how/why it is copying 2 columns instead of 1, then I can figure out how to do multiple columns at a time in the future, if needed. Thanks in advance for the help!
Code:
With L3sheet
.AutoFilterMode = False
With Range("A1", Range("B" & Rows.Count).End(xlUp))
.AutoFilter 1, "=" & CoCode
.AutoFilter 2, "=" & Account
On Error Resume Next
.Offset(1, 3).SpecialCells(12).Copy Destination:=ws.Cells(lastA, 2).Offset(14, 0)
.Offset(1, 2).SpecialCells(12).Copy Destination:=ws.Cells(lastA, 3).Offset(14, 0)
On Error GoTo 0
End With
End With