ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Updating Hyperlink with sheet name change? (https://www.excelbanter.com/excel-programming/302587-updating-hyperlink-sheet-name-change.html)

Todd

Updating Hyperlink with sheet name change?
 
Hi, I am using a worksheet with hyperlinks pointing to cells in the worksheet as a template. How do I get the hyperlinks to update so they refer to a new sheet name? Right now I am manually removing and recreating all the hyperlinks.

TIA


Todd


keepITcool

Updating Hyperlink with sheet name change?
 

use the hyperlink worksheetfunction.

you'll have to be VERY carefull with it's arguments.

syntax which works for me:
=hyperlink("[c:\path\my work book.xls]#'sheet name'!a1")


the [] can go around the whole path
the # is used between address and subaddress
the '' should be used to pad the sheet name else names with spaces wont
work)

the only glitch:
a file path with a # cannot be opened... as the function parses it at the
wrong point...



keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"?B?VG9kZA==?=" wrote:

Hi, I am using a worksheet with hyperlinks pointing to cells in the
worksheet as a template. How do I get the hyperlinks to update so
they refer to a new sheet name? Right now I am manually removing and
recreating all the hyperlinks.

TIA


Todd





All times are GMT +1. The time now is 10:32 AM.

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