ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   how do i make it so that when a sheat is selected either via link or tab, that xlLastCell is selected. the last on the sheet. (https://www.excelbanter.com/excel-worksheet-functions/34819-how-do-i-make-so-when-sheat-selected-either-via-link-tab-xllastcell-selected-last-sheet.html)

Daniel

how do i make it so that when a sheat is selected either via link or tab, that xlLastCell is selected. the last on the sheet.
 
how do i make it so that when a sheat is selected either via link or tab,
that xlLastCell is selected. the last on the sheet.



Rowan

Use the sheet activate event. Right click on the sheet tab, select view code
and then paste this event code onto the code sheet.

Private Sub Worksheet_Activate()
Cells.SpecialCells(xlCellTypeLastCell).Select
End Sub

Hope this helps
Rowan

"Daniel" wrote:

how do i make it so that when a sheat is selected either via link or tab,
that xlLastCell is selected. the last on the sheet.





All times are GMT +1. The time now is 04:33 PM.

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