#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default cell comments

here it goes - is it possible to have a comment automatically appear in a
cell if the info entered meets certain criteria?

Greg
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default cell comments


You could use the message in Data Validation


--
royUK

Hope that helps, RoyUK
For tips & examples visit my 'web site' (http://www.excel-it.com/)
------------------------------------------------------------------------
royUK's Profile: http://www.thecodecage.com/forumz/member.php?userid=15
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=103405

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,722
Default cell comments

Yes. Right click on sheet tab, view code, paste this in. Adjust as necessary.

Private Sub Worksheet_Change(ByVal Target As Range)
If Target Is Nothing Then Exit Sub

'Change this to your criteria
If Target.Value = "Bob" Then
With Target
.AddComment

'Set this to true if you want
'comment visible all the time
.Comment.Visible = False

'Change text to whatever you want comment to be
.Comment.Text Text:="My comment" & CHAR
End With
End If

End Sub
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Greggo G" wrote:

here it goes - is it possible to have a comment automatically appear in a
cell if the info entered meets certain criteria?

Greg

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default cell comments

Thanks Luke - I'll play around and see if I can get it to work (still have a
whole lot to learn about VBA)

"Luke M" wrote:

Yes. Right click on sheet tab, view code, paste this in. Adjust as necessary.

Private Sub Worksheet_Change(ByVal Target As Range)
If Target Is Nothing Then Exit Sub

'Change this to your criteria
If Target.Value = "Bob" Then
With Target
.AddComment

'Set this to true if you want
'comment visible all the time
.Comment.Visible = False

'Change text to whatever you want comment to be
.Comment.Text Text:="My comment" & CHAR
End With
End If

End Sub
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Greggo G" wrote:

here it goes - is it possible to have a comment automatically appear in a
cell if the info entered meets certain criteria?

Greg

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cell Comments Terry Bennett Excel Worksheet Functions 3 September 16th 07 10:02 PM
print comments using cell contents, not cell# dickenswick Excel Discussion (Misc queries) 3 September 20th 06 11:48 PM
Need to add cell comments in unlocked cell on protected worksheet dan400man Excel Discussion (Misc queries) 3 December 16th 05 08:02 PM
Comments in cell Norman K via OfficeKB.com Excel Discussion (Misc queries) 2 October 3rd 05 05:13 PM
cell comments rick N Excel Worksheet Functions 1 February 11th 05 09:02 AM


All times are GMT +1. The time now is 01:50 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"