+ Reply to Thread
Results 1 to 4 of 4

How to find the last row being used

  1. #1
    Registered User
    Join Date
    12-19-2011
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    4

    How to find the last row being used

    Hi all,

    This question has been asked millions of time but I couldn't find the answer. So here we go again:

    I have a named range, say 'sellDate'. This refers to some header of a column containing dates, so this date refers to only 1 cell. How do I find the last row of the column in which 'sellDate' has been defined. I played around with something like Range("sellDate").Rows.Count.End(xlUp).Row but that isn't working.

    Thanks for the help.

  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,447

    Re: How to find the last row being used

    Please Login or Register  to view this content.
    Pick a column that will definitely have data in the last row, like a key or ID field.

    Regards, TMS
    Last edited by Cutter; 07-25-2012 at 09:56 AM. Reason: Added code tags
    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
    Registered User
    Join Date
    12-19-2011
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: How to find the last row being used

    Thanks for the reply. But I need to know how I can use my ranged name 'sellDate' in here.
    Last edited by Cutter; 07-25-2012 at 09:55 AM. Reason: Removed whole post quote

  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,447

    Re: How to find the last row being used

    Maybe:

    Please Login or Register  to view this content.
    Last edited by Cutter; 07-25-2012 at 09:10 PM. Reason: Added code tags

+ 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