+ Reply to Thread
Results 1 to 5 of 5

Simulating the ALT+DOWN ARROW shortcut

  1. #1
    Forum Contributor
    Join Date
    11-28-2008
    Location
    Reykjavík, Iceland
    MS-Off Ver
    Any of: 2003 & 2007
    Posts
    412

    Simulating the ALT+DOWN ARROW shortcut

    Hi,

    I came up with the hereunder code.
    Please Login or Register  to view this content.
    I am trying to open (to present the drop-down values), via code with: SendKeys "%{DOWN}" command, to simulate the ALT+DOWN ARROW combination - but, unfortunately, it does nothing.

    Any help will be appreciated.

    Thanks, Elm
    Last edited by ElmerS; 03-31-2009 at 08:40 AM.

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Simulating the ALT+DOWN ARROW shortcut

    Your code works fine in Excel 2003.
    Have you tried using the code in a new workbook to make sure
    the problem isn't restricted to the current one?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Forum Contributor
    Join Date
    11-28-2008
    Location
    Reykjavík, Iceland
    MS-Off Ver
    Any of: 2003 & 2007
    Posts
    412

    Re: Simulating the ALT+DOWN ARROW shortcut

    Thanks for your reply.

    I am using "Excel 2003".

    It seems strange that it does not work here.

    Do I have to configure something, in "Excel"s configurations to force it work for me ?

    Elm

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Simulating the ALT+DOWN ARROW shortcut

    It works for me in 2007 too (though renaming the macro is a good idea given ELM1 is a cell reference in 2007), if you're stepping through the code using F8 and/or running directly from VBE it won't....

  5. #5
    Forum Contributor
    Join Date
    11-28-2008
    Location
    Reykjavík, Iceland
    MS-Off Ver
    Any of: 2003 & 2007
    Posts
    412

    Re: Simulating the ALT+DOWN ARROW shortcut

    Thanks DonkeyOte,

    You grabbed out something that was left deep in my "memory".

    Whenever one tries to rum the code from within the VBE Window - all the Sendkeys are executed in the VBE Window and NOT in the sheet.

    Thanks a lot.

    Elm
    Last edited by ElmerS; 03-31-2009 at 08:40 AM.

+ 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