Hi.
Is there a way of creating a shortcut in excel?
I would like to create a new keystrok combination, say for instance Shift/Alt/H/ to fire off some code.
Thanks.
Hi.
Is there a way of creating a shortcut in excel?
I would like to create a new keystrok combination, say for instance Shift/Alt/H/ to fire off some code.
Thanks.
You would use
[vba]application.OnKey "+%h","test"[/vba]
but that didn't work for me, it brought up the help menu.
____________________________________________
Nihil simul inventum est et perfectum
Abusus non tollit usum
Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
James Thurber
Yeah, some of them are pre-defined. Shift/Alt/q works though.
Thanks a lot.
On another note, any idea how to disable existing key-strokes?
I would like to diasble Alt+F11 (to show the VB editor)
Do an OnKey without the second parameter.
____________________________________________
Nihil simul inventum est et perfectum
Abusus non tollit usum
Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
James Thurber
Yeah, that works great.
Thanks a lot.