Hi,

Try it...

Private Sub Worksheet_Change(ByVal Target As Range)
 If Target.Address <> "$A$1" Or Target.Cells.Count > 1 Then Exit Sub
    Target.ClearComments
    If Target.Value = "XYZ" Then
         Target.AddComment ("Good Work")
    End If
    If Target.Value = "PQR" Then
       Target.AddComment ("Need Improvement")
    End If
End Sub

Regards,

MARIES.
+971502420957

On Wed, Mar 7, 2012 at 2:07 PM, Shrinivas Shevde <shrinivas...@gmail.com>wrote:

> Can I give conditional conmments.For Eg if In  Cell A1 there is "XYZ" then
> the comments show "Good Work" and If A1 contents "PQR" then comments should
> show"need Improvement"

-- 
FORUM RULES (986+ members already BANNED for violation)

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.

2) Don't post a question in the thread of another member.

3) Don't post questions regarding breaking or bypassing any security measure.

4) Acknowledge the responses you receive, good or bad.

5)  Cross-promotion of, or links to, forums competitive to this forum in 
signatures are prohibited. 

NOTE  : Don't ever post personal or confidential data in a workbook. Forum 
owners and members are not responsible for any loss.

------------------------------------------------------------------------------------------------------
To post to this group, send email to excel-macros@googlegroups.com

Attachment: COMMENTS.xlsm
Description: Binary data

Reply via email to