Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 175
Default Stop a macro

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Stop a macro

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)

"alvin Kuiper" wrote in message
...
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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
stop a macro alvin Kuiper Excel Programming 3 February 15th 06 07:06 PM
How do I stop a macro from running within a macro? JohnUK Excel Programming 1 June 26th 05 10:59 AM
Stop running a macro in the middle of a macro gmunro Excel Programming 3 June 9th 05 06:00 PM
Macro: With Stop it works. Without Stop it doesn't. Don Wiss Excel Programming 2 October 12th 04 10:49 AM
Start Macro / Stop Macro / Restart Macro Pete[_13_] Excel Programming 2 November 21st 03 05:04 PM


All times are GMT +1. The time now is 02:59 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"