Quit macro
-
- 5StarLounger
- Posts: 1185
- Joined: 24 Jan 2010, 12:02
- Location: Wales, UK.
Quit macro
How can I quit a macro that has gone into an endless loop. I am getting an input box, followed by the creation of an email which is going to cycle 65 thousand times over. I cannot get into the vbe?
Nathan
There's no place like home.....
There's no place like home.....
-
- Administrator
- Posts: 78488
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
-
- 5StarLounger
- Posts: 1185
- Joined: 24 Jan 2010, 12:02
- Location: Wales, UK.
Re: Quit macro
No joy. pause and break are separate on my keyboard, combinations of each do not quit.
Nathan
There's no place like home.....
There's no place like home.....
-
- Administrator
- Posts: 78488
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
-
- 5StarLounger
- Posts: 1185
- Joined: 24 Jan 2010, 12:02
- Location: Wales, UK.
Re: Quit macro
Esc quits the inputbox which triggers the email creation along with the next inputbox. I've really messed up here!HansV wrote:And Esc?
Nathan
There's no place like home.....
There's no place like home.....
-
- Administrator
- Posts: 78488
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
-
- Administrator
- Posts: 78488
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Quit macro
For the future: it is useful to insert a statement
DoEvents
within a loop, at least during testing. This will allow the operating system to process events such as the user pressing Ctrl+Break.
DoEvents
within a loop, at least during testing. This will allow the operating system to process events such as the user pressing Ctrl+Break.
Best wishes,
Hans
Hans
-
- 5StarLounger
- Posts: 1185
- Joined: 24 Jan 2010, 12:02
- Location: Wales, UK.