ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Hyperlink using a variable destination (https://www.excelbanter.com/excel-worksheet-functions/115667-hyperlink-using-variable-destination.html)

Christos T

Hyperlink using a variable destination
 
I want to have a hyperlink pointing to a different cell depending on the
value of another cell.
i.e.
Cell A1 has a variable value depending on some function, e.g. Z8 (which is
the cell address of where I want the hyperlink to be pointing to)
I want to have a hyperlink in cell D10 taking the data from cell A1 (i.e.
Z8) and pointing to cell Z8.

I don't know macro, so if I need macro to do this could someone please guide
me through it ?

Many thanks in advance
.... also could you please email me the answer as well to


Bernie Deitrick

Hyperlink using a variable destination
 
Christos,

=HYPERLINK("[Book1.xls]Sheet1!" & A1, "Click me")

Change Book1 to the workbook name, Sheet1 to the sheet name.

HTH,
Bernie
MS Excel MVP


"Christos T" <Christos wrote in message
...
I want to have a hyperlink pointing to a different cell depending on the
value of another cell.
i.e.
Cell A1 has a variable value depending on some function, e.g. Z8 (which is
the cell address of where I want the hyperlink to be pointing to)
I want to have a hyperlink in cell D10 taking the data from cell A1 (i.e.
Z8) and pointing to cell Z8.

I don't know macro, so if I need macro to do this could someone please guide
me through it ?

Many thanks in advance
... also could you please email me the answer as well to





All times are GMT +1. The time now is 04:49 AM.

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