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