I have created a system to manage mortgage accounting. Each mortgage has it's own spreadsheet. File names: mortgage.xlsx, mortgage1.xlsx, mortgage2.xlsx up to mortgage49.xlsx.
I have created a master control spreadsheet that pulls information from all the accounts (spreadsheets).
Some of the spreadsheets may not exist, so to prevent a Macro error the file is only opened if it exists. Thus:
This part works fine. Having opened them I then need to close them in the same Macro.Please Login or Register to view this content.
However the following does not work and results in a Runtime error 9. Subscript out of range.
This trips up at the first statement below, which IS an existing file:
Please Login or Register to view this content.
Bookmarks