I came across an issue that I cannot seem to figure out. The macro has been working beautifully for only one of the types of files I need it to pull in to the master workbook. All I have added to the macro from the above are nested case statements for correctly identifying the type of spreadsheet I have and the manager it has been submitted for. I have gone through the macro step by step with the files that are not being copied in and no errors are displayed but the target sheet is never copied into the master workbook. However, it is being moved into the "Imported" folder as specified in the macro.
The case for searching for "BOW" in the name works for those spreadsheets. The case for "HC" evaluates to true for those type of spreadsheets and shtAdd is renamed as specified (verified during debug). The macro opens the target file, goes to the second worksheet, seemingly copies the data and pastes it in the master workbook and then closes the file. After I finish all the steps though, there aren't any new worksheets in the master workbook as there should be. Help!
Bookmarks