Public Sub SearchCommentCell(Target As Range)
Dim srchSht As Worksheet
Dim srchRng As Range, foundCell As Range
Dim firstAddress As String
'Sheet to search
Set srchSht = ThisWorkbook.Sheets("Sheet1")
'Range to search
Set srchRng = srchSht.Range("B:B")
'Find the cell - assuming addresses are written as A5 and not A$5$ in Sheet1
Set foundCell = srchRng.Find(What:=Replace(Target.Address, "$", ""))
If foundCell Is Nothing Then
' not found
Else
' cell found
' note down the address of first cell found
firstAddress = foundCell.Address
Do
' check if the sheet name matches, ie, is this comment for Main!A5 or Secondary!A5
If (foundCell.Offset(0, -1).Value = ActiveSheet.Name) Then
' sheet name matched; activate found cell
ThisWorkbook.Sheets("Sheet1").Activate
foundCell.Select
Exit Do
End If
' else search for next cell with the address
Set foundCell = srchRng.FindNext(After:=foundCell)
' loop until search wraps around
Loop Until foundCell.Address = firstAddress
End If
End Sub