+ Reply to Thread
Results 1 to 3 of 3

Code for Arrow keys

  1. #1
    Registered User
    Join Date
    01-11-2006
    Posts
    82

    Lightbulb Code for Arrow keys

    Hi,

    Can anyone tell me the code for the arrow keys.
    i.e, If i need to move the arrow key, what is the code generated.

    To be more clear, I create a macro, when I use the arrow down key, it selects the cell like "A2" (In the code it selects the physical location as A2). I do not want that. Suppose I use a down arrow key, it should not select the cell but as well should take anything below the specified cell. (This is to be used when cell is not clear while programming.)

    So, clearly, I need the code for the arrow keys.

    This is the code which I get when used down arrow key.

    Sub Pravi()
    Range("A2").Select
    End Sub


    Please help.
    Thanks,
    Praveen.

  2. #2
    Tom Ogilvy
    Guest

    Re: Code for Arrow keys

    ActiveCell.End(xldown).Select

    --
    Regards,
    Tom Ogilvy


    "praveen_khm" <[email protected]>
    wrote in message
    news:[email protected]...
    >
    > Hi,
    >
    > Can anyone tell me the code for the arrow keys.
    > i.e, If i need to move the arrow key, what is the code generated.
    >
    > To be more clear, I create a macro, when I use the arrow down key, it
    > selects the cell like "A2" (In the code it selects the physical
    > location as A2). I do not want that. Suppose I use a down arrow key, it
    > should not select the cell but as well should take anything below the
    > specified cell. (This is to be used when cell is not clear while
    > programming.)
    >
    > So, clearly, I need the code for the arrow keys.
    >
    > This is the code which I get when used down arrow key.
    >
    > Sub Pravi()
    > Range("A2").Select
    > End Sub
    >
    >
    > Please help.
    > Thanks,
    > Praveen.
    >
    >
    > --
    > praveen_khm
    > ------------------------------------------------------------------------
    > praveen_khm's Profile:

    http://www.excelforum.com/member.php...o&userid=30364
    > View this thread: http://www.excelforum.com/showthread...hreadid=504579
    >




  3. #3
    Registered User
    Join Date
    01-11-2006
    Posts
    82

    Re:

    Thanks Tom

+ 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