How about a hint at capturing key strokes with a macro. I'm sure a
key stroke is an events and can fire a subroutine. On-Line Help
seems to tell what I want to do, but I can't quite decode these
words:
HELP:" Runs a specified procedure when a particular key or key
combination is pressed. " [[yea, yea... right, just what I want.
Just like an 'interrupt' in the old days, eh? Now called 'events,
right' ]]
HELP:" expression.OnKey(Key, Procedure) " [[ O K...]]
expression Required. An expression that returns an Application
object. "
Yikes! I choke on this "expression...returns an Application
object.". I sort'a get objects and methods, but the concept fades in
and out. My brain thinks either in interrupts or these terms:
A$=Inkey$ [ check for key-stroke in the kbd buffer every time you
pass this line of code ]
IF A$ = "L" GoSub whatever.
continue with normal operation upon return...
I already use check boxes and cell selection changes to fire routines
just fine...
However, it appears that this may preclude typing into a cell when
desired:
HELP:" If Procedure is omitted, Key reverts to its normal result in
Microsoft Excel, and any special key assignments made with previous
OnKey methods are cleared. "
Therefore, perhaps I want to use 'non-printing' keys (maybe F-Keys),
but stay away from "Global keys" also found in the online help...Help
does, sometimes.