Hi
I am working on an excel spreadsheet which is consolodating data from another workbook. Lets call the one with the consolodation the 'master'. I have a macro which is working to consolodate data from a different workbook called the 'local'. The local workbook has multiple worksheets, all with the same column format and data entry. The purpose of the master is to consolodate all the data from all local worksheets into one worksheet in the master and my macros is working to do this very well.
To run the macro from the master, the local must not be open. But when I run it, the macro opens the local so that it can copy the cell ranges in each worksheet etc, however when the macro finishes and the consolodation is completed, the local workbook is still open.
Is there a piece of VBA code I can write at the end of the macro which will close the local workbook and only leave the master as the only open workbook? Basically so my open files are as they were before I ran the macro.
Bookmarks