ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Keypressed? (https://www.excelbanter.com/excel-programming/278678-keypressed.html)

Hans

Keypressed?
 
How do I implement something like:

For I = 1 To 10000
If KeyPressed='H' Then
Get out of the Loop (Or do something else)
End If
Next I

/Hans


Harald Staff[_5_]

Keypressed?
 
Hi Hans

That is a little complicated and requires some Windows API programming. See
Stephen Bullen's CheckKey.zip at http://www.bmsltd.co.uk/Excel/Default.htm.

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

"Hans" skrev i melding
...
How do I implement something like:

For I = 1 To 10000
If KeyPressed='H' Then
Get out of the Loop (Or do something else)
End If
Next I

/Hans




Hans

Keypressed?
 
WOW it works perfectly!!!
Kisses, hugs!!! Thanks!!!
/Hans

-----Original Message-----
Hi Hans

That is a little complicated and requires some Windows

API programming. See
Stephen Bullen's CheckKey.zip at

http://www.bmsltd.co.uk/Excel/Default.htm.

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

"Hans" skrev i melding
...
How do I implement something like:

For I = 1 To 10000
If KeyPressed='H' Then
Get out of the Loop (Or do something else)
End If
Next I

/Hans



.


Harald Staff[_5_]

Keypressed?
 
Glad to hear that Hans. I'm unfortunately not the brain behind that
masterpiece :-)
--
HTH. Best wishes Harald
Followup to newsgroup only please

"Hans" skrev i melding
...
WOW it works perfectly!!!
Kisses, hugs!!! Thanks!!!
/Hans

-----Original Message-----
Hi Hans

That is a little complicated and requires some Windows

API programming. See
Stephen Bullen's CheckKey.zip at

http://www.bmsltd.co.uk/Excel/Default.htm.





All times are GMT +1. The time now is 06:47 AM.

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