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
 

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

Top