S
SusanV
I have an autoexec macro that calls multiple public functions. The first
function requires the user to select excel files which become the basic
tables via transferspreadsheet. If they select the wrong files, the function
bombs. I added error handling for the GetData function to throw up an error
box and exit function, but the macro continues running, and now the NEXT
function bombs because the data is not what is expected. Users still get the
define field and Macro halt dialog boxes (which of course throws them into a
panic, lol)
How can I not only exit the function which errored, but also halt the macro
itself?
<going around in circles trying to fix errors in my error handling!!!>
TIA,
SusanV
function requires the user to select excel files which become the basic
tables via transferspreadsheet. If they select the wrong files, the function
bombs. I added error handling for the GetData function to throw up an error
box and exit function, but the macro continues running, and now the NEXT
function bombs because the data is not what is expected. Users still get the
define field and Macro halt dialog boxes (which of course throws them into a
panic, lol)
How can I not only exit the function which errored, but also halt the macro
itself?
<going around in circles trying to fix errors in my error handling!!!>
TIA,
SusanV