Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a worksheet which uses a function to get value from a different
cell. =if (SheetName! CellName < "",SheetName! CellName, "") ----syntax =if(Log!A5<"",Log!A5,"")----actual code snippet I have then hyperlinked the cell to the same cell from where it is getting the value ie A5. Problem: Whenever I insert rows, the reference gets updated but I have to manually adjust the hyperlink to A6 say(row is added before A5). Is there a way of adjusting that through VBA? It would be awesome if I could get some help here, as I have to update the hyperlinks for more than thousand places. Thanks, Nasir. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You could name the cell (range) and refer to that. Names references are
updated as rows/columns are added and removed. -- Cheers Nigel wrote in message oups.com... I have a worksheet which uses a function to get value from a different cell. =if (SheetName! CellName < "",SheetName! CellName, "") ----syntax =if(Log!A5<"",Log!A5,"")----actual code snippet I have then hyperlinked the cell to the same cell from where it is getting the value ie A5. Problem: Whenever I insert rows, the reference gets updated but I have to manually adjust the hyperlink to A6 say(row is added before A5). Is there a way of adjusting that through VBA? It would be awesome if I could get some help here, as I have to update the hyperlinks for more than thousand places. Thanks, Nasir. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks Nigel. Do I have to name all the cells for that purpose? is
there any way of doing that through some code? Nigel wrote: You could name the cell (range) and refer to that. Names references are updated as rows/columns are added and removed. -- Cheers Nigel wrote in message oups.com... I have a worksheet which uses a function to get value from a different cell. =if (SheetName! CellName < "",SheetName! CellName, "") ----syntax =if(Log!A5<"",Log!A5,"")----actual code snippet I have then hyperlinked the cell to the same cell from where it is getting the value ie A5. Problem: Whenever I insert rows, the reference gets updated but I have to manually adjust the hyperlink to A6 say(row is added before A5). Is there a way of adjusting that through VBA? It would be awesome if I could get some help here, as I have to update the hyperlinks for more than thousand places. Thanks, Nasir. |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
try using absolute reference $A$5. hth
" wrote: I have a worksheet which uses a function to get value from a different cell. =if (SheetName! CellName < "",SheetName! CellName, "") ----syntax =if(Log!A5<"",Log!A5,"")----actual code snippet I have then hyperlinked the cell to the same cell from where it is getting the value ie A5. Problem: Whenever I insert rows, the reference gets updated but I have to manually adjust the hyperlink to A6 say(row is added before A5). Is there a way of adjusting that through VBA? It would be awesome if I could get some help here, as I have to update the hyperlinks for more than thousand places. Thanks, Nasir. |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Since you want the hyperlink for the same cell as referenced in the
formula you could use the HYPERLINK Worksheet Function. - --- HTH, David McRitchie, Microsoft MVP - Excel My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm Search Page: http://www.mvps.org/dmcritchie/excel/search.htm "JLGWhiz" wrote in message ... try using absolute reference $A$5. hth " wrote: I have a worksheet which uses a function to get value from a different cell. =if (SheetName! CellName < "",SheetName! CellName, "") ----syntax =if(Log!A5<"",Log!A5,"")----actual code snippet I have then hyperlinked the cell to the same cell from where it is getting the value ie A5. Problem: Whenever I insert rows, the reference gets updated but I have to manually adjust the hyperlink to A6 say(row is added before A5). Is there a way of adjusting that through VBA? It would be awesome if I could get some help here, as I have to update the hyperlinks for more than thousand places. Thanks, Nasir. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Moving rows with Hyperlink doesn't move hyperlink address | Excel Discussion (Misc queries) | |||
Intra-workbook hyperlink: macro/function to return to hyperlink ce | Excel Discussion (Misc queries) | |||
When updating a worksheet, how do I create a link updating the sa. | Excel Worksheet Functions | |||
Updating Hyperlink with sheet name change? | Excel Programming | |||
reading html when hyperlink address not hyperlink text diplayed | Excel Programming |