+ Reply to Thread
Results 1 to 3 of 3

Assigning Key Strokes to Activate Subroutines

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    10-25-2010
    Location
    Phoenix, Arizona, USA
    MS-Off Ver
    O365
    Posts
    202

    Assigning Key Strokes to Activate Subroutines

    I would like to allow my user to be able to press CTRL+P, CTRL+S, etc. to activate selected subroutines.

    Aside from using:
        With Application
            .OnKey "^{p}", "PTOApproved"        'customizes the function when CTRL+P is pressed.
            .OnKey "^{s}", "ShortNoticePTO"     'customizes the function when CTRL+S is pressed.
            .OnKey "^{d}", "Disability"         'customizes the function when CTRL+D is pressed.
            .OnKey "^{r}", "PTORequest"         'customizes the function when CTRL+R is pressed.
        End With
    Is there a way to assign the CTRL+ to the subroutines?

    Thanks!

  2. #2
    Forum Contributor
    Join Date
    10-25-2010
    Location
    Phoenix, Arizona, USA
    MS-Off Ver
    O365
    Posts
    202

    Re: Assigning Key Strokes to Activate Subroutines

    I should have asked...

    Is there a way to assign the CTRL+ to the subroutines without using the .OnKey function?

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Assigning Key Strokes to Activate Subroutines

    Via the Macros (Alt+F8) dialog
    Entia non sunt multiplicanda sine necessitate

+ 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