Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to abort executing macro?

is there a way to provide a button that will always abort the
VBA execution?

e.g. am executing multiple loops, with calls to time delay functions,
(data acquisition loop), and while this is running, the worksheet
buttons are dead. Even if I have the Visual Basic window open,
I cant use the 'stop' button while the time delay function is
executing, it wont respond for some reason.

I would like a way to preemptively abort execution, e.g. a separate
watchdog process/thread?

tia!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 634
Default How to abort executing macro?

Have you tried CTRL+BREAK?

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

----------------------------------------------------------------------------
It's easier to beg forgiveness than ask permission :-)
----------------------------------------------------------------------------



"perfb" wrote in message
om...
is there a way to provide a button that will always abort the
VBA execution?

e.g. am executing multiple loops, with calls to time delay functions,
(data acquisition loop), and while this is running, the worksheet
buttons are dead. Even if I have the Visual Basic window open,
I cant use the 'stop' button while the time delay function is
executing, it wont respond for some reason.

I would like a way to preemptively abort execution, e.g. a separate
watchdog process/thread?

tia!



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.703 / Virus Database: 459 - Release Date: 10/06/2004


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
Executing a macro in another file NSNR Excel Discussion (Misc queries) 1 December 11th 07 01:35 PM
executing a macro within another brian Excel Discussion (Misc queries) 3 July 5th 06 01:22 AM
Executing macro in one book from another. michaelberrier Excel Discussion (Misc queries) 3 June 26th 06 10:45 AM
Executing a macro from a cell filo666 Excel Discussion (Misc queries) 2 February 15th 05 08:18 PM
executing a macro from within a cell kduntley Excel Programming 2 May 13th 04 05:38 PM


All times are GMT +1. The time now is 08:10 PM.

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"