+ Reply to Thread
Results 1 to 3 of 3

Select first empty row of data

Hybrid View

twckfa16 Select first empty row of data 02-04-2013, 11:15 AM
RHCPgergo Re: Select first empty row of... 02-04-2013, 11:19 AM
alansidman Re: Select first empty row of... 02-04-2013, 11:38 AM
  1. #1
    Forum Contributor
    Join Date
    11-06-2012
    Location
    New Jersey, US
    MS-Off Ver
    Excel 2016
    Posts
    182

    Select first empty row of data

    Hello,

    The following code is selecting the last row of data plus all the way down. Is there a way to adjust it to select the first EMPTY row of data
    then all the way down?

    Range("A1").Select
    Selection.End(xlDown).Select
    ActiveCell.Offset(1, 0).Select
    Range(Selection, ActiveCell.SpecialCells(xlLastCell)).Select

  2. #2
    Valued Forum Contributor
    Join Date
    08-13-2012
    Location
    Gardony, Hungary
    MS-Off Ver
    Excel 2003
    Posts
    558

    Re: Select first empty row of data

    Hey,

    this line should do it:
    Range(Range("A" & Rows.Count).End(xlUp).Offset(1, 0), Range("A" & Rows.Count)).Select

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2509 Win 11
    Posts
    25,000

    Re: Select first empty row of data

    Try this
    Sub MT()
    ActiveSheet.Range("A1").End(xlDown).Offset(1).EntireRow.Select
    End Sub
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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