I am building in error handlers into my VBA file, for when extracting data from SAP where for certain accounts & countries there is no data. I found online to use the following:
However, when running this code, when the sap scripting is complete & the file is exported, the code stops because of the exit sub. Why is this & how do I correctly write the error handler? Can you also please explain why & the logic behind it.