Add time and date stamp to Excel comments.

G

Guest

Is it possible to automatically add the time / date to a comment box in Excel?

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/com...9-a5308586bc9c&dg=microsoft.public.excel.misc
 
G

Guest

Ahmed,
If you just want the current date/time in a cell, enter: = now() into the
cell and format the cell as mm/dd/yyyy h:mm
 
G

Guest

This code will append the current date to existing comments in the comment
box of the selected cell.

Sub DateToCommentBox()
ActiveCell.Select
If Not Selection.Comment Is Nothing Then
Selection.Comment.Visible = True
Selection.Comment.Text Text:=ActiveCell.Comment.Text & Chr(10) & " " &
Date & Chr(10)
Selection.Comment.Visible = False
End If
End Sub

If copying, watch out for word-wrap

Vaya con Dios,
Chuck, CABGx3
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top