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

Hello,

If my VB program runs by mistake in an infinite loop, there seems to
be no way to stop it without killing Excel with the TaskManager.
I think there should be a way to just stop whatever the interpreter is
doing. The 'play/stop' toolbar of the VBEditor does not react in any
way when the program is running. Might be important also that the
program is sporting MsgBox'es so it is always waiting for an answer,
and I can't click from the dialog to the stop button in enough time. I
need to stop it _while_ it is waiting for an answer from me.
I'm running Excel 2000 on Windows 2000.

Any ideas appreciated,
S
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Stop a VB program from running

Unless you have disabled the break key, you should be able to use
Ctrl+Break to break stop the code on the current line of
execution. Note that it often takes several Ctrl+Breaks for it to
take.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Soterro" wrote in message
m...
Hello,

If my VB program runs by mistake in an infinite loop, there

seems to
be no way to stop it without killing Excel with the

TaskManager.
I think there should be a way to just stop whatever the

interpreter is
doing. The 'play/stop' toolbar of the VBEditor does not react

in any
way when the program is running. Might be important also that

the
program is sporting MsgBox'es so it is always waiting for an

answer,
and I can't click from the dialog to the stop button in enough

time. I
need to stop it _while_ it is waiting for an answer from me.
I'm running Excel 2000 on Windows 2000.

Any ideas appreciated,
S



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Stop a VB program from running

I'm using excel 2002 so I'm not sure whether it would
work on 2000, but I just hold down Esc.
-----Original Message-----
Hello,

If my VB program runs by mistake in an infinite loop,

there seems to
be no way to stop it without killing Excel with the

TaskManager.
I think there should be a way to just stop whatever the

interpreter is
doing. The 'play/stop' toolbar of the VBEditor does not

react in any
way when the program is running. Might be important also

that the
program is sporting MsgBox'es so it is always waiting

for an answer,
and I can't click from the dialog to the stop button in

enough time. I
need to stop it _while_ it is waiting for an answer from

me.
I'm running Excel 2000 on Windows 2000.

Any ideas appreciated,
S
.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 170
Default Stop a VB program from running


"Soterro" wrote in message
m...
Hello,

If my VB program runs by mistake in an infinite loop, there seems to
be no way to stop it without killing Excel with the TaskManager.
I think there should be a way to just stop whatever the interpreter is
doing. The 'play/stop' toolbar of the VBEditor does not react in any
way when the program is running. Might be important also that the
program is sporting MsgBox'es so it is always waiting for an answer,
and I can't click from the dialog to the stop button in enough time. I
need to stop it _while_ it is waiting for an answer from me.
I'm running Excel 2000 on Windows 2000.


Make sure the msgbox has a cancel button and use that to
stop execution

Keith


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default Stop a VB program from running

Soterro
On your keyboard, hold down Ctrl and hit Break. Break is near the upper
right corner of your keyboard. Doing this will stop all code. HTH Otto
"Soterro" wrote in message
m...
Hello,

If my VB program runs by mistake in an infinite loop, there seems to
be no way to stop it without killing Excel with the TaskManager.
I think there should be a way to just stop whatever the interpreter is
doing. The 'play/stop' toolbar of the VBEditor does not react in any
way when the program is running. Might be important also that the
program is sporting MsgBox'es so it is always waiting for an answer,
and I can't click from the dialog to the stop button in enough time. I
need to stop it _while_ it is waiting for an answer from me.
I'm running Excel 2000 on Windows 2000.

Any ideas appreciated,
S



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
How do I stop a program on startup in xp pro Dontgiveup62 Excel Discussion (Misc queries) 5 January 22nd 09 06:08 PM
keeping a running time for tv program Jim Excel Worksheet Functions 0 April 24th 06 06:16 PM
how do i disable "running virus scan" in excel program when opened Tammy New Users to Excel 1 June 10th 05 08:48 PM
How to display a form- to show status of the running program Joseph Excel Discussion (Misc queries) 2 May 31st 05 11:31 AM
Running Program on a Mac ibeetb Excel Programming 0 October 16th 03 01:47 PM


All times are GMT +1. The time now is 03:04 AM.

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"