Hi Lawlegge.
Try this code:
Sub AddACTS_CONS_RANGE()
Dim ocel As Range, rcnt As Long, i As Long
On Error Resume Next
rcnt = Range("E" & Rows.Count).End(xlUp).Row
For i = 2 To rcnt
If InStr(1, ActiveSheet.Range("E" & i), ".wag") > 0 Then
For Each ocel In ActiveSheet.Range("F" & i & ":AC" & i)
ocel.AddComment.Text Text:="ACTS:" & Chr(10) & Chr(10) & "" & Chr(10) & "CONS:" & Chr(10) & Chr(10) & ""
ocel.Comment.Shape.TextFrame.Characters(1, 5).Font.Bold = True
ocel.Comment.Shape.TextFrame.Characters(9, 5).Font.Bold = True
ocel.Comment.Shape.TextFrame.AutoSize = True
Next
End If
Next
End Sub
Bookmarks