Vba - new method (for me) of copy/paste failing - using "destination"

flynavy

New Member
Joined
Mar 18, 2015
Messages
43
(by the way - this is a duplicate post because I left out the title in the first post - sorry!)
Trying to copy UsedRange and paste to "destination" sheet - thought it would be cleaner. Copying from UsedRange range in wb_IGQty Workbook to workbook containing macro (ThisWorkbook). I'm failing with error 438 "Object does not support this property or method". This approach appeared cleaner than my old code so I tried something new. Questions: (1) what is wrong with the code, and (2) should I deep-six this approach. (I'm failing in the last line of code below - also failed without the .Paste). Thanks in advance for your thoughts...
Rich (BB code):
debugger = 51
Set wb_IGQty = Workbooks.Open(“\\ICSBS\RedirectedFolders\me\My Documents\IGQty.xlsx”)
debugger = 52
Dim tosheet As Worksheet
debugger = 53
Set tosheet = ThisWorkbook.Worksheets(“Inv”)
debugger = 54
ActiveSheet.UsedRange.Copy Destination:=tosheet(“A600”).Paste
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,155
Messages
5,835,697
Members
430,379
Latest member
QCLAN

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top