Hi,
I have a scenario where a user is complaining about a repetative task where errors often occur. He wants to know if it can be automated.
It should be very simply. The file that would be open, and active on the users Excel session would have named sheets. There would be a file in the same folder that can be named accordingly to make it simple, that contains sheets of the same name.
Basically, I need a VBA routine that will copy the contents of named sheets from one workbook (preferably not opened on the users excel session), into the relevant sheets on the current open workbook.
I can do this easily enough if both workbooks are open, just recording a macro will do the basics of selecting a sheet in one book, copying, selecting the other sheet in the other book, and pasting. Repeating for each sheet.
But can I do this without the book being opened? And more important, how do I optimise the code so it's not simply copy/paste, looped over and over for each named sheet?
Thanks in advance
ALan
I have a scenario where a user is complaining about a repetative task where errors often occur. He wants to know if it can be automated.
It should be very simply. The file that would be open, and active on the users Excel session would have named sheets. There would be a file in the same folder that can be named accordingly to make it simple, that contains sheets of the same name.
Basically, I need a VBA routine that will copy the contents of named sheets from one workbook (preferably not opened on the users excel session), into the relevant sheets on the current open workbook.
I can do this easily enough if both workbooks are open, just recording a macro will do the basics of selecting a sheet in one book, copying, selecting the other sheet in the other book, and pasting. Repeating for each sheet.
But can I do this without the book being opened? And more important, how do I optimise the code so it's not simply copy/paste, looped over and over for each named sheet?
Thanks in advance
ALan