Hi, i have the below code which copies from A3:C and then exports to A6. Is there a way to limit the copy and only copy the UsedRange from A3:C?
Code:
Sub Testing()
Dim LastRow As Long
Dim shtDst As Worksheet
Dim shtTest As Worksheet
Set shtDst = Sheets("Raw")
Set shtTest = Sheets("Test")
With Sheets(shtTest)
LastRow = Range("A" & Rows.Count).End(xlUp).Row
With .Range("A3:C" & LastRow)
.Copy
shtDst.Range("A6").PasteSpecial xlPasteValues
End With
End With
End Sub