Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

go last row

ResolvedVersion 2010

Andrew has attended:
Excel Advanced course
Excel VBA Intro Intermediate course
Excel Advanced - For Power Users course
Excel Dashboards for Business Intelligence course

Go to last row

I have created a workbook that will be used to capture data over a 6 month period. The workbook has dropdown lists and conditional formatting in it. To save people scrolling to the bottom every time they open the workbook, is it possible to write some code that, when the workbook is opened, will show the last row?

RE: Go to last row

I'd like to do this by used a command button if possible

RE: Go to last row

Hi Andrew,

Thank you for the forum question.

You can create an Open_Workbook event.

In the visual basic editor in the Project Explorer (The window top left). Double click ThisWorkBook and type the code below.

You will need to amend it. Change "Employees" to the name of your worksheet and change "a6" to the first cell reference in your table.


Private Sub Workbook_Open()
Sheets("Employees").Range("a6").End(xlDown).Select

End Sub

I hope this will help.

Kind regards

Jens Bonde
Microsoft Office Specialist Trainer

Tel: 0207 987 3777
Best STL - https://www.stl-training.co.uk
98%+ recommend us

London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector

RE: Go to last row

Thank you Jens - this works.

Much appreciated!

Andrew

RE: Go to last row

Hi Andrew,

I am happy to help.

Please let us know if we can help you in the future.

Kind regards

Jens Bonde
Microsoft Office Specialist Trainer

Tel: 0207 987 3777
Best STL - https://www.stl-training.co.uk
98%+ recommend us

London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector

 

Training courses

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.

Excel tip:

Edit and format multiple worksheets in one operation

To select two or more non-adjacent worksheets, click on the tab of each worksheet, while holding down the [CTRL] key.
To select two or more adjacent worksheets, click on the tab of the first worksheet and then on the tab of the last worksheet, while holding down the [SHIFT] key.
Enter or modify your data and apply the necessary formatting options to the sheet that's displayed

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.09 secs.