ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to interrupt code (https://www.excelbanter.com/excel-programming/405432-how-interrupt-code.html)

Ben

How to interrupt code
 
Is there a way that I can interrupt some code, at whatever stage it was at
when a button is clicked and then resume where it left off by clicking
another button. I would like to do this in real-time not in debug mode.
Thank you

Bob Phillips

How to interrupt code
 
What do you want to do within this interrupt?


--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Ben" wrote in message
...
Is there a way that I can interrupt some code, at whatever stage it was at
when a button is clicked and then resume where it left off by clicking
another button. I would like to do this in real-time not in debug mode.
Thank you




Nigel[_2_]

How to interrupt code
 
Stop - might be the answer? But depends what you want to do?

--

Regards,
Nigel




"Ben" wrote in message
...
Is there a way that I can interrupt some code, at whatever stage it was at
when a button is clicked and then resume where it left off by clicking
another button. I would like to do this in real-time not in debug mode.
Thank you



Ben

How to interrupt code
 
Let's say for instance that the program is sequentially processing 100 rows
and prodiucing a result for each row in col Z.
Supposing I want to interrupt the program at some stage in order to inspect
the results thus far and then resume the processing of the remaining rows at
a later stage..... much like using a break point in debug mode and then
resuming the execution of the program.

"Nigel" wrote:

Stop - might be the answer? But depends what you want to do?

--

Regards,
Nigel




"Ben" wrote in message
...
Is there a way that I can interrupt some code, at whatever stage it was at
when a button is clicked and then resume where it left off by clicking
another button. I would like to do this in real-time not in debug mode.
Thank you



Bob Phillips

How to interrupt code
 
You could use Application.Inputbox(msg, Type:=8), and just ignore the
return.

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Ben" wrote in message
...
Let's say for instance that the program is sequentially processing 100
rows
and prodiucing a result for each row in col Z.
Supposing I want to interrupt the program at some stage in order to
inspect
the results thus far and then resume the processing of the remaining rows
at
a later stage..... much like using a break point in debug mode and then
resuming the execution of the program.

"Nigel" wrote:

Stop - might be the answer? But depends what you want to do?

--

Regards,
Nigel




"Ben" wrote in message
...
Is there a way that I can interrupt some code, at whatever stage it was
at
when a button is clicked and then resume where it left off by clicking
another button. I would like to do this in real-time not in debug mode.
Thank you






All times are GMT +1. The time now is 05:43 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com