ExcelBanter

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

Hans

Keypressed function
 
Is there a function like:
While Not(keypressed = "A") then
Print "B"
While End

Regards
Hans


Tom Ogilvy

Keypressed function
 
No, there is no built in function like that. On possibility is to tie a
macro to a keypress using OnKey, but you are indicating the opposite of
this. If you want to get in the loop of interpreting keypresses, I believe
you will need to use the Windows API to do it.

--
Regards,
Tom Ogilvy
"Hans" wrote in message
...
Is there a function like:
While Not(keypressed = "A") then
Print "B"
While End

Regards
Hans





All times are GMT +1. The time now is 12:00 AM.

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