ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   First non-blank row in WS after hyperlinking (https://www.excelbanter.com/excel-worksheet-functions/252326-first-non-blank-row-ws-after-hyperlinking.html)

Jack Deuce

First non-blank row in WS after hyperlinking
 
I have several ws I use as check registers. I'd like to be able to go
to the last non-blank row in that ws when I click that register's ws
from the index page. It would always be the next available row in the
applicable ws. Is there a way from HYPERLINK to do that or maybe a
function once I get there? Macro?

TIA

ryguy7272

First non-blank row in WS after hyperlinking
 
here are a couple different ways:

this will select the cell. it's not a good practice to select, but just used
as
an illustration here.

range(worksheets("Sheet1").cells(rows.Count,"A").e nd(xlup).address).Select


Sub FindLastCell1()
Cells(Rows.Count, "A").End(xlUp).Select
End Sub

You can record a macro, hit ctrl+down arrow key and look at the code. Good
learning experience!
--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.


"Jack Deuce" wrote:

I have several ws I use as check registers. I'd like to be able to go
to the last non-blank row in that ws when I click that register's ws
from the index page. It would always be the next available row in the
applicable ws. Is there a way from HYPERLINK to do that or maybe a
function once I get there? Macro?

TIA
.



All times are GMT +1. The time now is 05:30 PM.

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