Copy from one workbook to another

Living2xcess

New Member
Joined
Jan 12, 2014
Messages
5
I know I am doing I am missing something very basic, but I can not for the life of me figure it out. I am trying to copy cells D3:D43 to another workbook's cells E3:E43. Can somebody tell me what I have wrong here? I get the error message on the last command.


Sub Appointments()

Application.ScreenUpdating = False

''''''''Declare Variables
Dim Appts As Workbook
Dim Source As Workbook
Dim EOD As String

'''''''''Set Variable Values
Set Appts = ActiveWorkbook

'''''''''Open Report
MsgBox "Please Open The End Of Day File"

EOD = Application.GetOpenFilename
If EOD = "False" Then Exit Sub

Workbooks.Open EOD
Set Source = ActiveWorkbook

Appts.Cells(3 & "E", 43 & "E").Value = Source.Cells(3 & "D", 43 & "D").Value

End Sub
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
I also tried:

Appts("Appointments").Range("E3:E43").Value = Source("Appointments & Declines").Range("D3:D43").Value

I get the error message "Object does not support this property or method"
 
Upvote 0
This gives me an "automation error"

Appts.Sheets(1).Range("E3:E43").Value = Source.Sheets(1).Range("D3:D43").Value
 
Upvote 0
Does anybody know any alternative commands to copy from one workbook to another without using copy and pastes commands? I use huge data files, so I am trying to bypass copying to the clipboard and then pasting it into the other excel file.
 
Upvote 0
Problem solved: I switched ActiveWorkbook with Thisworkbook and it works as it should. If someone knows the reason ActiveWorkbook didn't work, I would love to know.
 
Upvote 0

Forum statistics

Threads
1,215,425
Messages
6,124,825
Members
449,190
Latest member
rscraig11

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