Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
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)) |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
GetKeyBoardState Function
Chip Pearson has a page on this, but using GetKeyState API function:
http://www.cpearson.com/excel/KeyTest.aspx Cheers, Dave "Jeff" wrote: 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)) |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
User Function Question: Collect Condition in Dialog Box - But How toInsert into Function Equation? | Excel Programming | |||
copy of excel file not showing formulal/function in the function b | Excel Discussion (Misc queries) | |||
LINKEDRANGE function - a complement to the PULL function (for getting values from a closed workbook) | Excel Worksheet Functions | |||
Excel - User Defined Function Error: This function takes no argume | Excel Programming | |||
Offset function with nested match function not finding host ss. | Excel Worksheet Functions |