Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I can see the code for comment with date and time. its use with MICRO. can it
possible when I insert comment it will display with current date. without using micro. please tell me how is possible. code which i have thru net is below; Sub CommentDateTimeAdd() 'adds comment with date and time, ' positions cursor at end of comment text 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:=Format(Now, strDate) & Chr(10) Else cmt.Text Text:=cmt.Text & Chr(10) _ & Format(Now, strDate) & Chr(10) End If With cmt.Shape.TextFrame .Characters.Font.Bold = False End With SendKeys "%ie~" End Sub thanks for advance RKS |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
extracting a date from a comment field in an excel file | Excel Discussion (Misc queries) | |||
Current date in the comment instead of the user ID | Excel Worksheet Functions | |||
Default date and time in the comment. | Excel Worksheet Functions | |||
Comment Displays date | Excel Discussion (Misc queries) | |||
date in cell comment | Excel Discussion (Misc queries) |