The classic Excel Macro Paradox.
File A starts a Macro.
File A opens File B which runs a Macro.
File A is waiting for File B to complete the File B Macro, so that File A can continue.
File A takes control when the File B Macro completes, ONLY IF FILE B IS STILL OPEN.
If File B closes itself, then Excel SHUTS DOWN ALL MACROS and File A never regains control.
A possible solution to your problem is:
a. Commenting out the 'Close' statements below.
b. Have File A close File B.
Possible long term fix:
Have File B close itself only if the File A Workbook is NOT OPEN.
See the attached Father/Son programs which demonstrate the situation.
Lewis
Bookmarks