My code starts by creating a file called ICB_All.xls
Then I need to look in the directory where this file was created and import the data from all other files within the directory into ICB_ALL.XLS.
So the order of things:
1) create File1, File2, File3 in C:\My documents
2) Create ICB_All.xls in C:\My documents
3) Close all other files except ICB_All.xls and import the data from File1, then underneath that import the data from File2, etc. so that all data is merged into one file.
All datat is in the exact same format. I have tried several different codes to get file names and loop through files but nothing has worked so far. Please help.
Then I need to look in the directory where this file was created and import the data from all other files within the directory into ICB_ALL.XLS.
So the order of things:
1) create File1, File2, File3 in C:\My documents
2) Create ICB_All.xls in C:\My documents
3) Close all other files except ICB_All.xls and import the data from File1, then underneath that import the data from File2, etc. so that all data is merged into one file.
All datat is in the exact same format. I have tried several different codes to get file names and loop through files but nothing has worked so far. Please help.