LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default stopping macro

I do use a stop button on a status form in some of my macros


When a user presses the stop button, code attached to the stop butto
sets a public boolan variable.

At strategic places through out my code i place code to check if th
variable is true or false taking action as required


To prevent the macro from hanging waiting for user input when th
status form is activated i use

Private Sub UserForm_Activate()
call mymacro
End Su

--
Message posted from http://www.ExcelForum.com

 
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
Protect macro from stopping saman110 via OfficeKB.com Excel Discussion (Misc queries) 1 August 16th 07 08:22 PM
Stopping Excel macro pattern recgonition mal1920 New Users to Excel 2 November 17th 05 05:10 AM
Stopping an animation macro Ray Kanner[_2_] Excel Programming 3 November 23rd 03 11:40 PM
My Macro keeps stopping?? Sh0t2bts Excel Programming 5 October 28th 03 03:08 PM
Stopping a macro without using Ctrl Break Julian[_2_] Excel Programming 1 October 27th 03 02:39 AM


All times are GMT +1. The time now is 04:17 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"