Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 287
Default Insert Date Comment

Hi,

I am wanting to insert a comment with the current date when I change a cell value within a Range of cells. Thanks in advance!

Thanks,
Aaron
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default Insert Date Comment

Aaron,

You can use the worksheet's change event. Copy the code below, right click
on the sheet tab, select "View code", then paste in the window that appears.
Change the range from A1:C10 to match your desired range.

HTH,
Bernie
MS Excel MVP

Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("A1:C10")) Is Nothing Then
Target.AddComment CStr(Date)
End If
End Sub


"Aaron" wrote in message
...
Hi,

I am wanting to insert a comment with the current date when I change a

cell value within a Range of cells. Thanks in advance!

Thanks,
Aaron



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
Insert Comment PL Excel Discussion (Misc queries) 1 March 12th 10 07:07 AM
Insert Comment Carl R[_2_] Excel Discussion (Misc queries) 1 September 25th 09 02:02 AM
Insert Comment PL Excel Discussion (Misc queries) 3 June 15th 09 01:13 PM
insert comment Matsd Charts and Charting in Excel 4 March 24th 07 10:58 PM
How do I insert a comment when the Insert:Comment menu is greyed? none Excel Discussion (Misc queries) 0 May 19th 05 12:36 AM


All times are GMT +1. The time now is 01:14 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"