GetKeyBoardState Function

  • Thread starter Thread starter Jeff
  • Start date Start date
J

Jeff

Greetings,
I am working on a function to see if Ctrl + S is pressed. Useing the
GetKeyboardState Function is it possible to retirve this information? Also
What I have written crashes excel any ideas what i'm missing?


Dim anArray
Dim Result As Long

On Error GoTo HandleError

anArray = Array(VK_CONTROL, VK_S)

Result = GetKeyboardState(anArray(0))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top