Dear Experts,
I am using the below formula to create the Hyperlinks from the Source worksheet to Target Worksheet:
"HYPERLINK("#"&CELL("address",INDEX(Data,MATCH(H7,Data,0))),H7)"
Using the below VBA in Source worksheet:
Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink)
ActiveCell.Parent.Cells.Interior.ColorIndex = xlColorIndexNone
ActiveCell.EntireRow.Interior.Color = vbYellow
Using the below VBA in Target worksheet:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Me.Cells.Interior.ColorIndex = xlColorIndexNone
End Sub
Target sheet row is not getting highlighted for the Hyperlinked Formula based links. However if I use a direct Hyperlink to a cell the VBA works perfect.
Please suggest what correction needed. Sample file added.
Regards
I am using the below formula to create the Hyperlinks from the Source worksheet to Target Worksheet:
"HYPERLINK("#"&CELL("address",INDEX(Data,MATCH(H7,Data,0))),H7)"
Using the below VBA in Source worksheet:
Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink)
ActiveCell.Parent.Cells.Interior.ColorIndex = xlColorIndexNone
ActiveCell.EntireRow.Interior.Color = vbYellow
Using the below VBA in Target worksheet:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Me.Cells.Interior.ColorIndex = xlColorIndexNone
End Sub
Target sheet row is not getting highlighted for the Hyperlinked Formula based links. However if I use a direct Hyperlink to a cell the VBA works perfect.
Please suggest what correction needed. Sample file added.
Regards