Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
It is possible with application.onkey. Example is with HOME-Key, for
other keys check VBA help inside Excel or look for it on the web: Sub StartOnKey() 'Run this sub to make the HOME-key run the "SubHello" procedure Application.OnKey "{HOME}", "SubHello" End Sub Sub SubHello() 'Pressing HOME will run this procedure MsgBox "hallo" End Sub Sub StopOnKey() 'Run this sub to return HOME-Key to its normal meaning. Application.OnKey "{HOME}" End Sub You can use Workbook_Open() and run application.onkey to bind a procedure to a key as soon as the workbook is opened. Hubisan |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Setting up an Excel sheet to automatically determine when an employeeshould enter a retirement plan, perhaps What-If Analysis would help? Anyother suggestions? | Links and Linking in Excel | |||
Select sheet, Pause till Enter pressed, return to previous sheet | Excel Programming | |||
How do I determine what key was pressed | Excel Programming | |||
how do I ensure enter is pressed | Excel Programming | |||
Enter pressed in Textbox | Excel Programming |