I am copying relatively large amounts of data from a sheet in one workbook to a sheet in another workbook using vba. To speed up the process I am using a method supposed to be faster (data is not copied via the clipboard):
Set RangeWithData = WS_WithData.Range("A1:X1000")
Set TargetRange = WS_Target.Range("C5:Z1004")
RangeWithData.copy Destination:=TargetRange
However, there is a unfortunate side effect: Named ranges from the source workbook are copied to the target workbook with ref to the source workbook as well.
I fail to see the logic
, and I would like to avoid this. Any ideas?
Set RangeWithData = WS_WithData.Range("A1:X1000")
Set TargetRange = WS_Target.Range("C5:Z1004")
RangeWithData.copy Destination:=TargetRange
However, there is a unfortunate side effect: Named ranges from the source workbook are copied to the target workbook with ref to the source workbook as well.

I fail to see the logic
