LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default Add data to comment more than one time

I update a cell every a few days with current date, like 11-1, 11-7,
11-10

I want to keep a record of the dates in comment. I am able to create a
new comment or add a record to the existing commend. But how can I keep
add data on top of exsing data in the comment, like

11-1
11-7
11-10


Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel
As Boolean)

Dim PriorValue
Dim Mycell As Range
Dim cmt As Comment

Set Mycell = Target
PriorValue = Target.Text

On Error Resume Next
Set cmt = Mycell.Comment
On Error GoTo 0
If Not cmt Is Nothing Then
Mycell.Comment.Text privorvalue
Else
Mycell.AddComment PriorValue
End If

Target.Cells(1, 2).Activate

End Sub

 
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
copy comment content to cell content as data not as comment Lilach Excel Discussion (Misc queries) 2 June 21st 07 12:28 PM
Default date and time in the comment. Gary Excel Worksheet Functions 4 January 16th 07 11:17 PM
How do I expand more than one comment box at same time? Carol Excel Discussion (Misc queries) 1 August 22nd 06 10:25 PM
run-time error 1004 & comment extraction GL Fr Excel Programming 2 March 14th 05 09:41 PM
a comment plugin & copy paste directly from excel to comment ? fr. RFM Excel Worksheet Functions 0 December 1st 04 11:29 PM


All times are GMT +1. The time now is 10:08 PM.

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"