Hi, can anyone spot the error in my ways on this? I've been on it for hours!
Essentially looking to copy data from Raw Data to Table5 which is on a separate sheet - but without using copy and paste that is taking way too long for my 20,000 rows and 85 columns of data. Any help will be greatly appreciated!
Public Sub Copy_3()
Dim DestRng As Variant, Virt As Variant
With Worksheets("Raw Data")
Set LastData = .Cells(.Rows.Count, "A").End(xlUp)
LastLine = LastData.Row
End With
Virt = Worksheets("Raw Data").Range("A2:N" & LastLine)
DestRng = Worksheets("Test").Range("Table5")
DestRng = Virt
End Sub
Essentially looking to copy data from Raw Data to Table5 which is on a separate sheet - but without using copy and paste that is taking way too long for my 20,000 rows and 85 columns of data. Any help will be greatly appreciated!
Public Sub Copy_3()
Dim DestRng As Variant, Virt As Variant
With Worksheets("Raw Data")
Set LastData = .Cells(.Rows.Count, "A").End(xlUp)
LastLine = LastData.Row
End With
Virt = Worksheets("Raw Data").Range("A2:N" & LastLine)
DestRng = Worksheets("Test").Range("Table5")
DestRng = Virt
End Sub