#1   Report Post  
Posted to microsoft.public.excel.programming
joe joe is offline
external usenet poster
 
Posts: 1
Default activex

hi everyone

I have a 'game' which finds it's way through a maze and
leaves a trail where it's been. When it moves on a cell
it changes it's value to "x" then uses the sheet_change
event to initialise the next move.

I realise this could be done several otherways but this
is not the issue. I need an activex control button to
stop the program whenever i desire. Is there a way to
check after each pass whether the 'stop' button is
pressed.
  #2   Report Post  
Posted to microsoft.public.excel.programming
rog rog is offline
external usenet poster
 
Posts: 39
Default activex

Joe, i think you can do this by settig a global boolean
variable to true when a command button, on the worksheet,
is pressed. In the "loop" of th maze, you should have a
DoEvents command, and check the value of this global
boolean - if it gets set to True as a result of the button
press, you can stop your code

Rgds

Rog




-----Original Message-----
hi everyone

I have a 'game' which finds it's way through a maze and
leaves a trail where it's been. When it moves on a cell
it changes it's value to "x" then uses the sheet_change
event to initialise the next move.

I realise this could be done several otherways but this
is not the issue. I need an activex control button to
stop the program whenever i desire. Is there a way to
check after each pass whether the 'stop' button is
pressed.
.

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
Tab between ActiveX controls Tekhnikos Excel Discussion (Misc queries) 0 August 12th 08 03:42 PM
ActiveX Medley1208 Excel Discussion (Misc queries) 0 May 30th 08 04:09 PM
Tab to an ActiveX control? Karin Excel Discussion (Misc queries) 0 July 6th 05 05:08 AM
ActiveX RedChequer Excel Discussion (Misc queries) 0 March 9th 05 11:05 PM
activeX Marcos Santos \(MOS\) Excel Programming 0 July 21st 04 09:42 PM


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