I am just learning proper error handling and need some help on proper etiquite.
I have module with 4 sub procedures that:
Sub Procedure 1 - Runs Sub Procedures 2-4.
Sub Procedure 2 - Open workbook
Sub Procedure 3 - Parses and formats file
Sub Procedure 4. Saves file
I have built On Error in Sub Procedure 2 to notify user if workbook does not exist, and then end the Sub Procedure. It does this fine, but then, since I start with Procedure 1, it tries to continiue with 3 & 4. How do I struture the On Error in Procedure 1 so that, if the workbook does not exist in Procedure 2, it does not even try to coninue with 3&4?
Thanks
jdttek
I have module with 4 sub procedures that:
Sub Procedure 1 - Runs Sub Procedures 2-4.
Sub Procedure 2 - Open workbook
Sub Procedure 3 - Parses and formats file
Sub Procedure 4. Saves file
I have built On Error in Sub Procedure 2 to notify user if workbook does not exist, and then end the Sub Procedure. It does this fine, but then, since I start with Procedure 1, it tries to continiue with 3 & 4. How do I struture the On Error in Procedure 1 so that, if the workbook does not exist in Procedure 2, it does not even try to coninue with 3&4?
Thanks
jdttek