Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default How to stop a macro while it is running ?

Hi,

I want to be able to have a buttons which can pause,resume or stop a
macro while it is running. How ot implement it ? Your help is
appreciated. Thanks

Srikanth
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default How to stop a macro while it is running ?

You can use the Escape key and then have your code look for that interruption.

See VBA's help for EnableCancelKey. You'll see an example.

Srikanth wrote:

Hi,

I want to be able to have a buttons which can pause,resume or stop a
macro while it is running. How ot implement it ? Your help is
appreciated. Thanks

Srikanth


--

Dave Peterson

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 Macro running when I save the workbook TyreDude Excel Worksheet Functions 1 July 9th 11 12:35 AM
How do I stop a Macro from running? JulianB Excel Worksheet Functions 1 April 10th 06 10:33 PM
How to stop screen blinking when running macro Stephen[_6_] Excel Programming 1 June 3rd 04 11:51 AM
When Save As stop running macro M K W Excel Programming 3 September 2nd 03 03:06 PM
How to Pause or Stop a running Macro jfeka[_2_] Excel Programming 0 July 17th 03 11:14 PM


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

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

About Us

"It's about Microsoft Excel"