run code on keboard stokes?

  • Thread starter Thread starter nathan
  • Start date Start date
N

nathan

Is there a way to run a code by pressing a "shortcut" key,
such as <ctrl>-v? I am new to coding so any help would be
greatly appreciated.

Thanks!!!
 
Simplest way to create a shortcut is to use an ampersand in the Caption of
the Label attached to the control you wish to jump to.

For example, if you have a text box named Surname, you could set the Caption
of its Label to:
&Surname
Then when you press Alt+S, focus jumps to the text box.

If you were actually trying to paste the text from clipboard, try:
RunCommand acCmdPaste
 
Back
Top