Welcome to the Excel Forum

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.

Please Register to Remove these Ads

Please Register to Remove these Ads



Reply
  #1  
Old 07-04-2009, 08:11 PM
tigertim71 tigertim71 is offline
Registered User
 
Join Date: 04 May 2008
Posts: 43
tigertim71 is becoming part of the community
Shortcut keys for empty cell at end of range

Please Register to Remove these Ads

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...
Reply With Quote
  #2  
Old 07-04-2009, 08:37 PM
martindwilson's Avatar
martindwilson martindwilson is online now
Forum Guru
 
Join Date: 23 Jun 2007
Location: London,England
MS Office Version:office 97 ,2003 ,2007
Posts: 6,086
martindwilson Has a higher level of understanding martindwilson Has a higher level of understanding martindwilson Has a higher level of understanding martindwilson Has a higher level of understanding martindwilson Has a higher level of understanding martindwilson Has a higher level of understanding martindwilson Has a higher level of understanding
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


recommended reading
wiki Mojito

how to say no convincingly

most important think you need
Reply With Quote
  #3  
Old 07-05-2009, 05:04 AM
tigertim71 tigertim71 is offline
Registered User
 
Join Date: 04 May 2008
Posts: 43
tigertim71 is becoming part of the community
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...
Reply With Quote
  #4  
Old 07-05-2009, 05:37 AM
martindwilson's Avatar
martindwilson martindwilson is online now
Forum Guru
 
Join Date: 23 Jun 2007
Location: London,England
MS Office Version:office 97 ,2003 ,2007
Posts: 6,086
martindwilson Has a higher level of understanding martindwilson Has a higher level of understanding martindwilson Has a higher level of understanding martindwilson Has a higher level of understanding martindwilson Has a higher level of understanding martindwilson Has a higher level of understanding martindwilson Has a higher level of understanding
Re: Shortcut keys for empty cell at end of range

Quote:
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.
__________________
Mojito connoisseur and a dabbler in Cisco
where does code go ?
look here
how to insert code

how to enter array formula


recommended reading
wiki Mojito

how to say no convincingly

most important think you need

Last edited by martindwilson; 07-05-2009 at 05:48 AM.
Reply With Quote
  #5  
Old 07-05-2009, 05:51 AM
tigertim71 tigertim71 is offline
Registered User
 
Join Date: 04 May 2008
Posts: 43
tigertim71 is becoming part of the community
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.
Reply With Quote
  #6  
Old 07-05-2009, 05:52 AM
tigertim71 tigertim71 is offline
Registered User
 
Join Date: 04 May 2008
Posts: 43
tigertim71 is becoming part of the community
Re: Shortcut keys for empty cell at end of range

Sorry, Ignore previous message - if there isn't a shortcut key, too bad...
Reply With Quote
  #7  
Old 07-05-2009, 05:54 AM
martindwilson's Avatar
martindwilson martindwilson is online now
Forum Guru
 
Join Date: 23 Jun 2007
Location: London,England
MS Office Version:office 97 ,2003 ,2007
Posts: 6,086
martindwilson Has a higher level of understanding martindwilson Has a higher level of understanding martindwilson Has a higher level of understanding martindwilson Has a higher level of understanding martindwilson Has a higher level of understanding martindwilson Has a higher level of understanding martindwilson Has a higher level of understanding
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


recommended reading
wiki Mojito

how to say no convincingly

most important think you need
Reply With Quote
  #8  
Old 07-05-2009, 05:41 PM
tigertim71 tigertim71 is offline
Registered User
 
Join Date: 04 May 2008
Posts: 43
tigertim71 is becoming part of the community
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.
Reply With Quote


Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump