ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Dynamic Hyperlink (https://www.excelbanter.com/excel-discussion-misc-queries/161481-dynamic-hyperlink.html)

peyman

Dynamic Hyperlink
 
hi,
I'm having a dynamic hyperlink by the following code:
Range("A" & Rows.Count).End(xlUp).Offset(1, 0).Select
but the problem is when I drag a formula like this,=IF(C127,"YY",""),
downward.

in this case the active cell will shift to the last cell in which we have
the formula, but I want it go to the last cell with "YY".
any help?
thanx

nastech

Dynamic Hyperlink
 
hi, not sure if i can answer, or if what you want, but have a hyperlink for
manuevering thru a document:

=HYPERLINK("#"&CELL("address",OFFSET($A$402,IF(ROW ($A$402)<(ROW($A402)-($Z$3/4)),-1,$Z$3),1)),"B")

z3 is a cell that calculates number of rows available, minus freeze-pane
header:
($Y$3-CELL("row",$A$17))-2

y3 is number of rows..

"peyman" wrote:

hi,
I'm having a dynamic hyperlink by the following code:
Range("A" & Rows.Count).End(xlUp).Offset(1, 0).Select
but the problem is when I drag a formula like this,=IF(C127,"YY",""),
downward.

in this case the active cell will shift to the last cell in which we have
the formula, but I want it go to the last cell with "YY".
any help?
thanx



All times are GMT +1. The time now is 01:55 AM.

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