+ Reply to Thread
Results 1 to 4 of 4

Macro to select next down cell after pressing the down arrow keyboard

  1. #1
    Forum Contributor
    Join Date
    06-25-2012
    Location
    Porto, Portugal
    MS-Off Ver
    Excel 2010
    Posts
    201

    Macro to select next down cell after pressing the down arrow keyboard

    Hi. I recorded a macro where i goes to the last non empty cell. Then i recorded in the same macro the movement of pressing the down arrow so it can select the next cell which is empty (so i can paste data through another macro). The thing is the macro recorder dont recognise the movement of down through keyboard and instead presents the code as a specific cell selection.
    The code i got was this:
    Please Login or Register  to view this content.
    This last piece of code
    Please Login or Register  to view this content.
    is what the macro is giving me instead of selecting the next under cell.
    How can i get a code to workaround this?

    Thank you

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,464

    Re: Macro to select next down cell after pressing the down arrow keyboard

    Please Login or Register  to view this content.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor
    Join Date
    06-25-2012
    Location
    Porto, Portugal
    MS-Off Ver
    Excel 2010
    Posts
    201

    Re: Macro to select next down cell after pressing the down arrow keyboard

    Thank you a lot. I was almost getting the answer but you were fast.
    I found this:
    Move 1 cell right:
    Selection.Offset(0, 1).Select

    Move 1 cell down:
    Selection.Offset(1, 0).Select

    And i was already to start using this. But this code you gave (which is based in this) workes perfect.
    Thank you

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,464

    Re: Macro to select next down cell after pressing the down arrow keyboard

    You're welcome. Thanks for the rep.

+ 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