Assign subroutine to a key press??

R

Robert Crandal

I have a subroutine named "DoCalculation" which I would
like to be called when a user presses Ctrl-D. What are
ALL the possible ways to assign a key press to a subroutine
of my choosing?

Thanks!
 
A

Anthony

?"Robert Crandal" wrote in message

I have a subroutine named "DoCalculation" which I would
like to be called when a user presses Ctrl-D. What are
ALL the possible ways to assign a key press to a subroutine
of my choosing?

Thanks!

try;

application.onkey("^{d}"), docalculation

you might need to check the onkey syntax, but the basics are there.

Regards

Anthony
 
Top