+ Reply to Thread
Results 1 to 3 of 3

Add shortcut key or hot key via vba

  1. #1
    Job
    Guest

    Add shortcut key or hot key via vba

    Anyone know how to programatically add hotkeys to existing subs via vba?



  2. #2
    ben
    Guest

    RE: Add shortcut key or hot key via vba

    you could use the OnKey method eg.


    application.OnKey "^{a}", "yoursub"

    will assign the key shortcut crtl+a to the sub "yoursub"

    "Job" wrote:

    > Anyone know how to programatically add hotkeys to existing subs via vba?
    >
    >
    >


  3. #3
    Job
    Guest

    Re: Add shortcut key or hot key via vba

    Thanks Ben!
    "ben" <[email protected]> wrote in message
    news:[email protected]...
    > you could use the OnKey method eg.
    >
    >
    > application.OnKey "^{a}", "yoursub"
    >
    > will assign the key shortcut crtl+a to the sub "yoursub"
    >
    > "Job" wrote:
    >
    >> Anyone know how to programatically add hotkeys to existing subs via vba?
    >>
    >>
    >>




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1