Al,
The OnKey method is something that runs in a macro. It's run once, and
assigns any key (This, that, Shift-this, Ctrl-Shift-that, Alt-other etc) to
run a macro when the key is pressed. Here are some things to consider
before we get into the coding:
Once in effect, it causes the key to run the macro in any open workbook in
the instance of Excel that's running. It's Excel-wide, not just
workbook-wide. You can code around it, but it gets a bit tiresome.
It remains in effect after the workbook has been closed, unless the workbook
also contains code to reset it when closed. If the workbook has been
closed, pressing the key will cause the workbook to open.
You can't use the key as the first character to be typed into a cell. It
will trigger the macro instead. You can use it once typing in a cell, and
can get around this first character problem by pressing F2 or
double-clicking the cell to first get into Edit mode.
To implement this, you'll need to be able to move about the Visual Basic
Environment (Alt-F11). David McRitchie has a tutorial to get you started
with that.
If you're still interested, post back. We'll give you some code. It isn't
all that much, actually.