Hey there. I'm working on a set of macros that will be stored in a PERSONAL.XLS file. What I'm trying to do at the moment is copy the entire contents of an open Sheet (the name of the sheet will always be the same, but the data inside is variable) into the PERSONAL.XLS file only using VBA code. I tried the following code, but got an error ("Error 1004: application-defined or user-defined error".
Now one of the problems I've been having is that I can't add modules to the first sheet/workbook (circumstances don't allow for it) and that's been limiting me for some time now. I would appreciate any help anyone could give.
Code:
Sheets("output_file").Copy _ 'the name of the sheet to be copied
Destination:=Workbooks("personal.xls").Sheets("Sheet1").Range("A1")
Now one of the problems I've been having is that I can't add modules to the first sheet/workbook (circumstances don't allow for it) and that's been limiting me for some time now. I would appreciate any help anyone could give.