P0lar
Member
Hi,
I've used the hyperlink formula trick from the (very nice) dashboards examples elsewhere on the site to run a user defined function when I put the mouse pointer over a cell =IFERROR(HYPERLINK(MyMouseOverEvent(),""),"Text").
I also have a macro which runs when I select the cell with the hyperlink but I now want to change the display text in the hyperlink formula based on this. I'd normally just change the "Text" bit of the hyperlink formula to e.g. A1, then get the macro to change the value in cell A1 to change the display text, but excel thinks that I'm then using a real hyperlink and complains that it can't find the source file when I click on the cell...
Is there a way other than by using something like find / replace in my macro to dynamically adjust the display text in the hyperlink???
I've used the hyperlink formula trick from the (very nice) dashboards examples elsewhere on the site to run a user defined function when I put the mouse pointer over a cell =IFERROR(HYPERLINK(MyMouseOverEvent(),""),"Text").
I also have a macro which runs when I select the cell with the hyperlink but I now want to change the display text in the hyperlink formula based on this. I'd normally just change the "Text" bit of the hyperlink formula to e.g. A1, then get the macro to change the value in cell A1 to change the display text, but excel thinks that I'm then using a real hyperlink and complains that it can't find the source file when I click on the cell...
Is there a way other than by using something like find / replace in my macro to dynamically adjust the display text in the hyperlink???