Hi Guys,
I have a problem that i have been trying to fix for a while now without much success. I have been trying to do a simple copy and paste from one spreadsheet to another and i keep getting a "Paste method of range class failed" error whenever i test the macro. Can I please trouble anyone out there to have a look at the vba code and provide some insight on where i am going wrong.
Application.Goto _
Workbooks("Master file.XLS").Sheets("Mapping Master Sheet").Range("data")
Selection.Copy
Application.CutCopyMode = False
Workbooks.Open FileName:="I:\Cognos\COA & Rollup\Temp.xls"
Sheets("ALLFRSMPG").Activate
Range("A1").Select
ActiveSheet.Paste
The break is at the last line of code.
Thank you in advance,
O
I have a problem that i have been trying to fix for a while now without much success. I have been trying to do a simple copy and paste from one spreadsheet to another and i keep getting a "Paste method of range class failed" error whenever i test the macro. Can I please trouble anyone out there to have a look at the vba code and provide some insight on where i am going wrong.
Application.Goto _
Workbooks("Master file.XLS").Sheets("Mapping Master Sheet").Range("data")
Selection.Copy
Application.CutCopyMode = False
Workbooks.Open FileName:="I:\Cognos\COA & Rollup\Temp.xls"
Sheets("ALLFRSMPG").Activate
Range("A1").Select
ActiveSheet.Paste
The break is at the last line of code.
Thank you in advance,
O