ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Stop a loop with a keyboard (https://www.excelbanter.com/excel-programming/283326-stop-loop-keyboard.html)

Fernando Ortiz

Stop a loop with a keyboard
 
Hi

I need a macro code easy to understand for the following problem.

I have a many records in the worksheet and need in some cases stop the macro
loop with press any key; example Space Bar.

its that possible?


Thanks for your expertice advice


Regards,


Fernando Ortiz



Harald Staff

Stop a loop with a keyboard
 
Hi Fernando

It's a little complex, but see the working solution CheckKey on Stephen
Bullen's page
http://www.bmsltd.co.uk/Excel/Default.htm

--
HTH. Best wishes Harald
Followup to newsgroup only please

"Fernando Ortiz" skrev i melding
...
Hi

I need a macro code easy to understand for the following problem.

I have a many records in the worksheet and need in some cases stop the

macro
loop with press any key; example Space Bar.

its that possible?


Thanks for your expertice advice


Regards,


Fernando Ortiz






All times are GMT +1. The time now is 07:15 PM.

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