+ Reply to Thread
Results 1 to 9 of 9

Select first blank row

  1. #1
    Forum Contributor
    Join Date
    06-15-2011
    Location
    Chester, England
    MS-Off Ver
    Excel 2013
    Posts
    117

    Select first blank row

    I'm having trouble with selecting the first blank row (I have trawled dozens of threads). So far I have this:

    Rows(Range("A" & Rows.Count).End(xlUp).Row).Offset(1, 0).Select

    This selects the first row where column A contains no data. My range goes from A:AO, but I do not know how to incorporate that in this line.

    I tried:

    Rows(Range("A:AO" & Rows.Count).End(xlUp).Row).Offset(1, 0).Select

    and

    Rows(Columns("A:AO" & Rows.Count).End(xlUp).Row).Offset(1, 0).Select

    Thanks in advance.
    Last edited by tone640; 07-15-2011 at 08:22 AM. Reason: solved

  2. #2
    Valued Forum Contributor MaczaQ's Avatar
    Join Date
    06-03-2011
    Location
    Poland
    MS-Off Ver
    Excel 2003 / XP
    Posts
    510

    Re: Select first blank row

    try this
    Please Login or Register  to view this content.
    or this:
    Please Login or Register  to view this content.
    Best Regards
    MaczaQ
    Last edited by MaczaQ; 07-15-2011 at 06:52 AM. Reason: code update

  3. #3
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Select first blank row

    to find the first empty cell in column A from 'the bottom'

    Please Login or Register  to view this content.
    to indicate that row:

    Please Login or Register  to view this content.



  4. #4
    Valued Forum Contributor
    Join Date
    11-11-2008
    Location
    Euro
    MS-Off Ver
    2007, 2010
    Posts
    470

    Re: Select first blank row

    Quote Originally Posted by tone640 View Post
    I'm having trouble with selecting the first blank row
    This selects the first row where column A contains no data. My range goes from A:AO, but I do not know how to incorporate that in this line.
    try an alternative, only select from range A*:AO* ( A* the first cell contain no data)
    Please Login or Register  to view this content.

    For select entire row

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    02-10-2011
    Location
    Copenhagen, DK
    MS-Off Ver
    Excel 2007
    Posts
    30

    Re: Select first blank row

    I use this code:
    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    06-15-2011
    Location
    Chester, England
    MS-Off Ver
    Excel 2013
    Posts
    117

    Re: Select first blank row

    Most of the above have the same effect, or don't work. Please see attached.
    Attached Files Attached Files

  7. #7
    Valued Forum Contributor MaczaQ's Avatar
    Join Date
    06-03-2011
    Location
    Poland
    MS-Off Ver
    Excel 2003 / XP
    Posts
    510

    Re: Select first blank row

    if you want to select first empty row where no value is set in range A:AO you can use just this:

    Please Login or Register  to view this content.
    Best Regards
    MaczaQ

  8. #8
    Forum Contributor
    Join Date
    06-15-2011
    Location
    Chester, England
    MS-Off Ver
    Excel 2013
    Posts
    117

    Re: Select first blank row

    Thanks MaczaQ, spot on.

  9. #9
    Valued Forum Contributor
    Join Date
    11-11-2008
    Location
    Euro
    MS-Off Ver
    2007, 2010
    Posts
    470

    Re: Select first blank row

    Or an other way

    Please Login or Register  to view this content.

+ 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