Cells(Rows.Count, 1).End(xlUp).Offset(1, 0).Select
How to try this on sheet2 from sheet1
It is time-consuming to scroll and go to the first or last empty row while you are working on a huge worksheet. In this article, I introduce some tricks for quickly going to the first or last empty row in Excel.
Office Tab: Bring powerful tabs to Office (include Excel), just like Chrome, Safari, Firefox and Internet Explorer. Save you half the time, and reduce thousands of mouse clicks for you. 30-day Unlimited Free Trial
Kutools for Excel: Save 71% of your time and solve 82% Excel problems for you. 300+ advanced tools designed for 1500+ work scenario, make Excel much easy and increase productivity immediately.60-day Unlimited Free Trial
Here are two VBA can help you quickly go to the first or last empty row in active sheet, please do as below.
1. Press Alt + F11 keys to enable Microsoft Visual Basic for Applications window. See screenshot:
2. Then click Insert > Module and paste below code into the script. See screenshot:
VBA: Go to first blank row.
Sub Findfirstblankcell() 'UpdatebyExtendoffice20170712 Dim Rng As Range Dim WorkRng As Range On Error Resume Next xTitleId = "KutoolsforExcel" Set WorkRng = Application.Selection Set WorkRng = Application.InputBox("Range", xTitleId, WorkRng.Address, Type:=8) For Each Rng In WorkRng If Rng.Value = "" Then MsgBox "No Value, in " & Rng.Address End If Next End Sub
3. Press F5 to run the code, and a dialog pops out to remind you to choose a range to work. See screenshot:
4. Click OK. A dialog pops out to remind you the cell reference of the first blank row, see screenshot:
5. Click OK repeatedly to close the Microsoft Excel dialog. And then go to the Name box, type A2 into it, press Enter key, and you will go to the first blank row. See screenshot:
Tip: If you want to go to the last empty row, please use below VBA code, and after you press an F5 key, the cursor directly goes to the last blank row.
VBA: Go to last empty row
Sub selectlastemptyrow() Cells(Rows.Count, 1).End(xlUp).Offset(1, 0).Select End Sub
Note: This VBA will select the last empty cell in the Column A. To select last empty cell in another column, please change 1 in the code Cells(Rows.Count, 1) to another number.
If you want to go to last empty row or column quickly, you can apply Kutools for Excel’s Last Row or Last Column utility. With them, you can quickly go to the last nonblank cell of last row or column in current worksheet, and then the next cell is the last empty row or empty column.
|Kutools for Excel, with more than 120 handy functions, makes your jobs easier.|
After installing Kutools for Excel, please do as below:（Free Download Kutools for Excel Now!)
Click Kutools > Select > Select Last Cell > Last Row/Last Column. See screenshot:
Then the last nonblank cells in the last row (or column) is selected. Just press Down arrow key (or Right arrow key) to activate the last empty row (or column).