#1   Report Post  
Bryan
 
Posts: n/a
Default Autotext in comment

My question is short and sweet. Is there any way to have the current date
automatically appear when inserting a comment. Obviously Excel puts the
current user....I'd like to get rid of that and have the date instead. Any
assistance you could give would be greatly appreciated.

Thanks
Eric

  #2   Report Post  
Jason Morin
 
Posts: n/a
Default

You could try a macro like this and assign it to a button
on a toolbar:

Sub NewComment()
Dim commTxt As String
commTxt = InputBox("Enter comment text: ")
If commTxt = "" Then Exit Sub
With ActiveCell
.AddComment
.Comment.Text Text:=Format(Now(), "mm/dd/yy") & _
Chr(10) & commTxt
.Comment.Visible = False
End With
End Sub

---
HTH
Jason
Atlanta, GA

-----Original Message-----
My question is short and sweet. Is there any way to

have the current date
automatically appear when inserting a comment.

Obviously Excel puts the
current user....I'd like to get rid of that and have the

date instead. Any
assistance you could give would be greatly appreciated.

Thanks
Eric

.

  #3   Report Post  
Debra Dalgleish
 
Posts: n/a
Default

There's no setting you can change to automatically insert the current
date at the top of a comment.

You could create a macro that inserts a comment with the date. Store the
macro in a workbook that's always open, such as Personal.xls. Then, add
a shortcut key, or a toolbar button to run the macro.

For example:

Sub CommentWithDate()
'adds date at top of comment
Dim cmt As Comment
Set cmt = ActiveCell.Comment
If cmt Is Nothing Then
ActiveCell.AddComment Text:=Format(Date, "Medium Date") & Chr(10)
Set cmt = ActiveCell.Comment
With cmt.Shape.TextFrame.Characters.Font
.Name = "Times New Roman"
.Size = 11
.Bold = False
.ColorIndex = 0
End With
End If
SendKeys "%ie~"
End Sub


Bryan wrote:
My question is short and sweet. Is there any way to have the current date
automatically appear when inserting a comment. Obviously Excel puts the
current user....I'd like to get rid of that and have the date instead. Any
assistance you could give would be greatly appreciated.

Thanks
Eric



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html

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
HOW DO I PRINT THE ENTIRE COMMENT rhw Excel Discussion (Misc queries) 2 December 29th 04 07:15 PM
Comment position..?? RJH Excel Discussion (Misc queries) 1 December 29th 04 04:00 PM
What is the keyboard shortcut to close a comment box in Excel 200 DAVE Excel Discussion (Misc queries) 5 December 23rd 04 07:45 PM
the red triangle that indicates comment has dissipeared while the. Rene Hgl Excel Discussion (Misc queries) 3 December 18th 04 04:39 PM
Comment Indicators ????? Excel Discussion (Misc queries) 1 December 4th 04 12:45 AM


All times are GMT +1. The time now is 02:40 AM.

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

About Us

"It's about Microsoft Excel"