A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

How do I change the comment default format to include date?



 
 
Thread Tools Display Modes
  #1  
Old March 22nd, 2010, 10:57 PM posted to microsoft.public.excel.misc
frj5000
external usenet poster
 
Posts: 1
Default How do I change the comment default format to include date?

In Excel 2007, I want to change the default format for comments, so that the
date the comment was added is included in the comment as well as the name of
the user who added the comment.
  #2  
Old March 22nd, 2010, 11:52 PM posted to microsoft.public.excel.misc
Bob Phillips[_3_]
external usenet poster
 
Posts: 489
Default How do I change the comment default format to include date?

Don't think that you can, the username is all you get, the rest you add
yourself.

--

HTH

Bob

"frj5000" wrote in message
...
In Excel 2007, I want to change the default format for comments, so that
the
date the comment was added is included in the comment as well as the name
of
the user who added the comment.



  #3  
Old March 23rd, 2010, 02:44 PM posted to microsoft.public.excel.misc
Gord Dibben
external usenet poster
 
Posts: 20,252
Default How do I change the comment default format to include date?

You cannot change the default.

You can run a macro to insert a Comment with date and time.

See Debra Dalgleish's site for code.

http://www.contextures.on.ca/xlcomments03.html#DateTime


Gord Dibben MS Excel MVP

On Mon, 22 Mar 2010 15:57:01 -0700, frj5000
wrote:

In Excel 2007, I want to change the default format for comments, so that the
date the comment was added is included in the comment as well as the name of
the user who added the comment.


  #4  
Old May 10th, 2010, 03:12 PM posted to microsoft.public.excel.misc
crimekilla
external usenet poster
 
Posts: 2
Default How do I change the comment default format to include date?

the link given to contextures.com takes away the signed on user name. i like
the function of it but i need to keep the name of the signed on user that
made the comment. any ideas.

"Gord Dibben" wrote:

You cannot change the default.

You can run a macro to insert a Comment with date and time.

See Debra Dalgleish's site for code.

http://www.contextures.on.ca/xlcomments03.html#DateTime


Gord Dibben MS Excel MVP

On Mon, 22 Mar 2010 15:57:01 -0700, frj5000
wrote:

In Excel 2007, I want to change the default format for comments, so that the
date the comment was added is included in the comment as well as the name of
the user who added the comment.


.

  #5  
Old May 10th, 2010, 08:39 PM posted to microsoft.public.excel.misc
Gord Dibben
external usenet poster
 
Posts: 20,252
Default How do I change the comment default format to include date?

The code takes away the Application Usename found in General Options, not
the signed on user name which could be different.

See revisions in this macro.

Sub CommentDateTimeAdd()
'adds Excel comments with date and time,
' positions cursor at end of comment text
'www.contextures.com\xlcomments03.html

Dim strDate As String
Dim cmt As Comment

strDate = "dd-mmm-yy hh:mm:ss"
Set cmt = ActiveCell.Comment

If cmt Is Nothing Then
Set cmt = ActiveCell.AddComment
cmt.Text Text:=Environ("username") & ":" & Chr(10) & _
Format(Now, strDate) & Chr(10)
Else
cmt.Text Text:=Environ("username") & ":" & Chr(10) & _
Format(Now, strDate) & Chr(10)
End If

With cmt.Shape.TextFrame
.Characters.Font.Bold = False
End With

SendKeys "%ie~"

End Sub


Gord




On Mon, 10 May 2010 07:12:04 -0700, crimekilla
wrote:

the link given to contextures.com takes away the signed on user name. i like
the function of it but i need to keep the name of the signed on user that
made the comment. any ideas.

"Gord Dibben" wrote:

You cannot change the default.

You can run a macro to insert a Comment with date and time.

See Debra Dalgleish's site for code.

http://www.contextures.on.ca/xlcomments03.html#DateTime


Gord Dibben MS Excel MVP

On Mon, 22 Mar 2010 15:57:01 -0700, frj5000
wrote:

In Excel 2007, I want to change the default format for comments, so that the
date the comment was added is included in the comment as well as the name of
the user who added the comment.


.


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:04 AM.


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