Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello!
I need code that if a value in T is changed, the date in the corresponding row of W will change to the date it is changed. Any help I can get will be immensely appreciated! Sandy |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sandy,
Put the following code in the sheet module for the worksheet whose changes you want to detect. Private Sub Worksheet_Change(ByVal Target As Range) If Target.Cells.Count 1 Then Exit Sub End If If Target.Column < 20 Then Exit Sub End If Target(1, 4).Value = Now End Sub -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "Sandy" wrote in message ... Hello! I need code that if a value in T is changed, the date in the corresponding row of W will change to the date it is changed. Any help I can get will be immensely appreciated! Sandy |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Dear Chip:
Thanks for your response. Works well, although I don't understand exactly how it works. Could you briefly describe what it's doing? I'm rusty in my VBA at the moment. Can this be taken one step further so that essentially, clicking on the cell is not enough to change it, but the actual change of the value will institute the date change? Sandy -----Original Message----- Sandy, Put the following code in the sheet module for the worksheet whose changes you want to detect. Private Sub Worksheet_Change(ByVal Target As Range) If Target.Cells.Count 1 Then Exit Sub End If If Target.Column < 20 Then Exit Sub End If Target(1, 4).Value = Now End Sub -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "Sandy" wrote in message ... Hello! I need code that if a value in T is changed, the date in the corresponding row of W will change to the date it is changed. Any help I can get will be immensely appreciated! Sandy . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can a cell be changed on a certain date | Excel Discussion (Misc queries) | |||
My date formats changed | Excel Discussion (Misc queries) | |||
Date suddenly changed | New Users to Excel | |||
if a1 value changed then date in b1 | Excel Worksheet Functions | |||
How do I get a date changed automatically | Excel Worksheet Functions |