See Debra Dalgleish's site for full Insert Comment with date/time code
http://www.contextures.on.ca/xlcomments03.html#DateTime
Here is revised version which pre-supposes no existing Comment in cell and
adds the "NOTE:" all in bold font.
Sub CommentDateTimeAdd()
Dim strDate As String
Dim cmt As Comment
strDate = "dd-mmm-yy hh:mm:ss"
Set cmt = ActiveCell.Comment
Set cmt = ActiveCell.AddComment
cmt.Text Text:=Format(Now, strDate) & Chr(10) _
& "NOTE:"
End Sub
Gord Dibben MS Excel MVP
On Mon, 21 Dec 2009 18:09:31 +0000, Keyrookie
wrote:
Is there a way to have a comment, when "Insert Comment" is selected, to
look like this?
12-19-09 (current date), 12:02 p.m. (current time)
NOTE:
In other words, have comments display current date & time when
selected?
Thanks,
K