But if you did have matching cells the code would look like this.
Sub Comment_It()
Dim sh As Worksheet, ws As Worksheet
Dim LstRw As Long, Rng As Range, c As Range, x As Variant
Set sh = Sheets("Data")
Set ws = Sheets("Mapping")
With sh
LstRw = .Cells(.Rows.Count, "A").End(xlUp).Row
Set Rng = .Range("A2:A" & LstRw)
For Each c In Rng.Cells
With Application.WorksheetFunction
t = .CountIf(ws.Range("A:A"), c.Value)
If t > 0 Then
x = .VLookup(c, ws.Range("A:B"), 2, False)
With c
.ClearComments
.AddComment
.Comment.Visible = False
.Comment.Text x
End With
End If
End With
Next c
End With
End Sub
Bookmarks