Stop a macro

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi
I have a mcro there lookup in another fil
But sometimes this dosn't work because the net i down
or something like that, but my macro trying to get the data
how can i stop this ??

Regards
Alvin
 
Put some error handling it in. At the start of the module add

On Error Goto mod_exit

then at the end add

mod_exit:

after this code you can test the error, and handle it. It is difficult to
say what to do as we don't know what you are trying to do. You might also
need to make some test to force an error, again depends upon what you are
doing.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Opening a csv file stops macro 7
Run Macro If Cell have "x" value 0
Form height and scroll 2
stop a macro 3
Goto 5
Checking if another workbook is open 6
About chart with a macro 1
Stop Command Question 4

Back
Top