M
moflaher
Hello,
I am trying to get information from an excel doc that is closed, copy
it, and paste it into the excel doc that i am working with. This is
what i have and it seems to work until i hit the final step when i get
an error message saying "Object doesn't support this porperty or
method". I have used this method of pasting before and never ran into
problems.
Any help would be much appreciated!
Sub CreateMaster()
Dim wkbCurrent As Workbook
Set wrbcurrent = ActiveWorkbook
Workbooks.Open "sourcefile.xls"
Worksheets("sheet2").Range("A1:J3").Select
Selection.Copy
ActiveWorkbook.Close SaveChanges:=False
wrbcurrent.Activate
Range("A1").Select
Selection.Paste
End Sub
I am trying to get information from an excel doc that is closed, copy
it, and paste it into the excel doc that i am working with. This is
what i have and it seems to work until i hit the final step when i get
an error message saying "Object doesn't support this porperty or
method". I have used this method of pasting before and never ran into
problems.
Any help would be much appreciated!
Sub CreateMaster()
Dim wkbCurrent As Workbook
Set wrbcurrent = ActiveWorkbook
Workbooks.Open "sourcefile.xls"
Worksheets("sheet2").Range("A1:J3").Select
Selection.Copy
ActiveWorkbook.Close SaveChanges:=False
wrbcurrent.Activate
Range("A1").Select
Selection.Paste
End Sub