I am trying to select the last line of a database, columns A thru E. So far, I've figured out that I can select the last cell in the row with:
but how do I select the entire line of data in the last row?![]()
Rows.End(xlDown).Select
Thanks.
I am trying to select the last line of a database, columns A thru E. So far, I've figured out that I can select the last cell in the row with:
but how do I select the entire line of data in the last row?![]()
Rows.End(xlDown).Select
Thanks.
You could use this code:
Regards,![]()
Dim lastRow As Long lastRow = Cells.Find("*", SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row Rows(lastRow).Select
Antonio
antoka05 - Thanks, I only wanted to select the last row in columns A thru E since that's how far out the database goes. Your solution seems to select the last row, but the entire row. However, you did spark an idea and I figured it out. Thanks.
![]()
CourseCount = WorksheetFunction.CountA(Range("$A:$A")) Range("A" & CourseCount & ":E" & CourseCount).Select
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks