VBA - Copy Data from ActiveWorkbook to sheet in a diffrent WorkBook

Browneh89

Board Regular
Joined
Mar 8, 2019
Messages
55
Office Version
  1. 365
Platform
  1. Windows
Hey, I am having trouble getting some VBA macro code to work. I am attempting to copy a sheet of data from my active workbook to a sheet in a separate workbook. below are the lines of code I have been trying to get to work:

ActiveWorkbook.Worksheets("Layout - ED").Range("A1:R3500").Copy
Workbooks.Open ("C:\Users\Daniel\Desktop\Work 2\FINDER.xlsx")
Workbooks("FINDER.xlsx").Worksheets("Sheet2").Range("A1")

Whenever I run this though I get a debug error saying Runtime error '438' Object does not support this property or method. Can anyone give me some advice on how to fix this and what that error means and why the above code didn't work? (Sorry for all the questions I'm trying to learn :D)
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
try
Code:
[COLOR=#333333]Workbooks("FINDER.xlsx").Worksheets("Sheet2").Range("A1").pastespecial
ravishankar[/COLOR]
 
Upvote 0

Forum statistics

Threads
1,213,536
Messages
6,114,207
Members
448,554
Latest member
Gleisner2

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
Back
Top