ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   go last row when file is opened (https://www.excelbanter.com/excel-discussion-misc-queries/212231-go-last-row-when-file-opened.html)

Wanna Learn

go last row when file is opened
 
Hello Whenever the workbook is opened I the cursor to go to the next
empty row. How do I do that? thanks

Mike H

go last row when file is opened
 
Hi,

there are several ways and you would need to be more secific to get a
precise answer but this select the cell after the last used cell in column A

Private Sub Workbook_Open()
ActiveSheet.Cells(Rows.Count, 1).End(xlUp)(2).Select
End Sub

Mike

"Wanna Learn" wrote:

Hello Whenever the workbook is opened I the cursor to go to the next
empty row. How do I do that? thanks


Bob I

go last row when file is opened
 
Use a macro to go to last cell, then Ctrl+Home, then down one.

Wanna Learn wrote:

Hello Whenever the workbook is opened I the cursor to go to the next
empty row. How do I do that? thanks



Shane Devenshire[_2_]

go last row when file is opened
 
Hi,

Without programming you might try pressing Ctrl+End and then Home.

This will work in certain situations.

You have provided very few details - does the whole row need to be blank or
only certain cells, which column in the empty row do you want to go to, A or
IV? How is your data set up on the sheet - is it solid or is every other row
blank, or something else? What if you are on the wrong sheet? Do you want
to count cells with formats or just cells with data when you are considering
a blank row?

If this helps, please click the Yes button

Cheers,
Shane Devenshire

"Wanna Learn" wrote:

Hello Whenever the workbook is opened I the cursor to go to the next
empty row. How do I do that? thanks


Gord Dibben

go last row when file is opened
 
Assuming Column A would contain the last row.

Private Sub Workbook_Open()
ActiveSheet.Cells(Rows.Count, 1).End(xlUp) _
.Offset(1, 0).Select
End Sub

Right-click on the Excel Icon left of "File" on the worksheet menubar.

Select "View Code" Paste the above into that module.

Alt + q to return to the Excel window.

Save and close. Reopen to find activecell at first blank cell below data in
column A


Gord Dibben MS Excel MVP

On Tue, 2 Dec 2008 12:02:07 -0800, Wanna Learn
wrote:

Hello Whenever the workbook is opened I the cursor to go to the next
empty row. How do I do that? thanks




All times are GMT +1. The time now is 06:39 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com