+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    05-04-2008
    Posts
    43

    Shortcut keys for empty cell at end of range

    I'm trying to record a macro and select the first empty cell at the bottom of a range of numbers, eg. A1,A2,A3 (populated), A3 (empty).

    I think it's ctrl+ or alt+ (something). Whatever I'm trying isn't working...

  2. #2
    Forum Guru martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    10,477

    Re: Shortcut keys for empty cell at end of range

    Code:
    Sub findbottom()
    Range("A65536").End(xlUp).Offset(1, 0).Select
    End Sub
    will take you to the first empty cell after the last entry in column a
    Mojito connoisseur and a dabbler in Cisco
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    05-04-2008
    Posts
    43

    Re: Shortcut keys for empty cell at end of range

    OK, thanks. But I was hoping to use the keyboard rather than write code at this stage...

  4. #4
    Forum Guru martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    10,477

    Re: Shortcut keys for empty cell at end of range

    I'm trying to record a macro
    just record the macro but manually select first empty cell at end of column when everything is done replace the line that says say A1234 .select with Range("A65536").End(xlUp).Offset(1, 0).Select
    but there isnt a direct short cut key ctrl +down arrow takes you to the last used cell.
    Last edited by martindwilson; 07-05-2009 at 06:48 AM.
    Mojito connoisseur and a dabbler in Cisco
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  5. #5
    Registered User
    Join Date
    05-04-2008
    Posts
    43

    Re: Shortcut keys for empty cell at end of range

    Sorry, I didn't make this clear. I was just hoping for a keyboard selection irrespective of whether I'm recording a macro or not, ie. I'd like to see the first empty cell after my range selected on screen, using crtl+ or alt+, if this is possible.

  6. #6
    Registered User
    Join Date
    05-04-2008
    Posts
    43

    Re: Shortcut keys for empty cell at end of range

    Sorry, Ignore previous message - if there isn't a shortcut key, too bad...

  7. #7
    Forum Guru martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    10,477

    Re: Shortcut keys for empty cell at end of range

    ctrl +down arrow takes you to the last used cell. how close do you want to get.?
    use down arrow again
    Mojito connoisseur and a dabbler in Cisco
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  8. #8
    Registered User
    Join Date
    05-04-2008
    Posts
    43

    Re: Shortcut keys for empty cell at end of range

    This makes perfect sense now. I had mistakenly thought there was a function for this in Excel, but I can work my way around this without a problem.

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.2.0