Hi, I asked yesterday about this - but maybe my title was bad. No one responded.
I have a refreshable Excel Spreadsheet that pulls data from an Access Database on the server. The server has been a pain lately - and not letting anything finish and causing lots of time outs.
I want to put an error handler into my vba macro that will force the application to quit if any errors occur.
I am thinking it is simply this:
sub name
on error goto Myerrorhandler
'rest of macro
Myerrorhandler:
application.quit
end sub
Is this right? I work remotely so I am not able to kill a job that gets hung - so i want to make sure my code is right before i do it.
Thanks for your help!
Sophie