View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Jeff Jeff is offline
external usenet poster
 
Posts: 921
Default GetKeyBoardState Function

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))