Results 1 to 3 of 3
  1. #1
    New Lounger
    Join Date
    Jul 2007
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to programatically assign a shortcut? (Outlook 2003)

    How to programmatically assign a custom shortcut for a macro in Outlook? Set it and reset it? Like in Excel you would do that by putting this to Workbook_Activate and Workbook_Deactivate:

    Sub MyKeyOne()
    Application.OnKey "+^{G}", "MacrosName"
    End Sub

    Sub ResetMyKeyOne()
    Application.OnKey "+^{G}"
    End Sub

    What is the equivalent of that in Outlook?

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: How to programatically assign a shortcut? (Outlook 2003)

    The object model for Outlook is much more limited and primitive than that for Word or Excel. It is not possible to set or remove keyboard shortcuts using VBA code - there is no support in the object model for that.

  3. #3
    New Lounger
    Join Date
    Jul 2007
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: How to programatically assign a shortcut? (Outlook 2003)

    Bummer... Thank you.

Posting Permissions

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