![]() |
Hyperlinks - relative references
I have in previous versions of Excel (Excel '97) created hyperlinks
that were relative to the current/active worksheet. For example if you create a worksheet called 'Intro' with a hyperlink at cell H3 pointing to cell A300 and then copy the worksheet to a new workbook and rename the sheet; then hyperlink in the new sheet cell H3 points to A300 in the new sheet. I seem unable to employ the same tactic under Excel 2003. Any thoughts/ advice. |
Hyperlinks - relative references
I haven't used hyperlinks much but I see that in Excel 97 you could create a
hyperlink like "C10" while in Excel 2003 the active sheet's name automatically added (e.g., Sheet1!A10) whether you want it or not. And since hyperlinks are just text entries they do not automatically get updated, like formulas do, when the sheet name is changed, so they are broken by doing so. I find though that you can create a 'hyperlink without sheet name' in Excel 2003 with a macro like this: ActiveCell.Hyperlinks(1).SubAddress="c10" If no one has a better suggestion this may be your only workaround. -- Jim wrote in message ps.com... |I have in previous versions of Excel (Excel '97) created hyperlinks | that were relative to the current/active worksheet. | | For example if you create a worksheet called 'Intro' with a hyperlink | at cell H3 pointing to cell A300 and then copy the worksheet to a new | workbook and rename the sheet; then hyperlink in the new sheet cell H3 | points to A300 in the new sheet. | | I seem unable to employ the same tactic under Excel 2003. Any thoughts/ | advice. | |
Hyperlinks - relative references
Jim
Yep, that's the one. I've used the same macro in a user form to give me easier accessibility. Stephen Allen On 4 Oct, 15:44, "Jim Rech" wrote: I haven't used hyperlinks much but I see that in Excel 97 you could create a hyperlink like "C10" while in Excel 2003 the active sheet's name automatically added (e.g., Sheet1!A10) whether you want it or not. And since hyperlinks are just text entries they do not automatically get updated, like formulas do, when the sheet name is changed, so they are broken by doing so. I find though that you can create a 'hyperlink without sheet name' in Excel 2003 with a macro like this: ActiveCell.Hyperlinks(1).SubAddress="c10" If no one has a better suggestion this may be your only workaround. |
All times are GMT +1. The time now is 12:34 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com