Format Excel Hyperlink Destination

I have an Excel 2010 workbook with lots of hyperlinks

Each hyperlink when clicked goes to another cell in another sheet within the same workbook.

I need the destination of any clicked hyperlink to be filled in a colour and the text boldened so it stands out but when another hyperlink is clicked, the first goes back to normal

Hope this makes sense
LVL 17
SteveIT ManagerAsked:
Who is Participating?
 
Rob HensonFinance AnalystCommented:
You can set Conditional formatting to be on the activecell using the row & col function within the CF formula.

=CELL("row")  will return the row of the active cell

=CELL("row",a1) will always return 1 (row 1)

=CELL("col") will return column of active cell

=CELL("col",a1) will return 1 (column 1)

So the following CF on A1 will highlight A1

=AND(CELL("row",a1)=CELL("row"),CELL("col",a1)=CELL("col"))

If you select the required range and select Conditional formatting. Enter that as a formula rule, changing the A1 reference to the top left of the selected area and choose the formatting required will highlight the active call with the formatting.

Thanks
Rob H
0
 
mark_harris231Commented:
Any other cell formatting that would need to be preserved other than the clicked hyperlink?  Do the hyperlinks appear in a particular range?
0
 
SteveIT ManagerAuthor Commented:
Hi

No other cell formatting present just text size 8

Hyperlinks will appear in various places in range A1 to G100
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
Rob HensonFinance AnalystCommented:
However, the CF won't change unless there is a calculation event. You can force the calculation on the Sheet Activate event of each sheet or on the hyperlink select on the source sheet.

Thanks
Rob H
0
 
SteveIT ManagerAuthor Commented:
Thanks

@robhenson - how would i combine the =AND(CELL("row",a1)=CELL("row"),CELL("col",a1)=CELL("col"))
 you have provided with the existing hyperlink to achieve the end result ?

0
 
SteveIT ManagerAuthor Commented:
Awesome thanks
0
 
mark_harris231Commented:
Nicely done, Rob.  Hadn't considered the use of conditional formatting for this one.
0
 
Rob HensonFinance AnalystCommented:
There would be no need to cobine with the hyperlink as this would be conditional formatting on the destination cells. When the hyperlink destination cell is selected it will be the active cell so the formatting will be activated, depending on the calculation being triggered as mentioned.

Thanks
Rob H
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.