Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a huge spreadhseet and I need a worksheet change event to
populate a target cell in column(AB) with today's date value, if anything gets added to target cells in columns(O:X). In other words, if O22 has something filled in AB22 would have today's date value. If at a later date S22 gets something filled in AB22 would update to the current date. TIA Greg |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Private Sub Worksheet_Change(ByVal Target As Range)
On Error GoTo ws_exit: Application.EnableEvents = False If Not Intersect(Target, Me.Range("O:X")) Is Nothing Then With Target Cells(Target.Row, "AB") = Format(Date, "dd mmm yyyy") End With End If ws_exit: Application.EnableEvents = True End Sub 'This is worksheet event code, which means that it needs to be 'placed in the appropriate worksheet code module, not a standard 'code module. To do this, right-click on the sheet tab, select 'the View Code option from the menu, and paste the code in. -- HTH Bob Phillips "GregR" wrote in message ups.com... I have a huge spreadhseet and I need a worksheet change event to populate a target cell in column(AB) with today's date value, if anything gets added to target cells in columns(O:X). In other words, if O22 has something filled in AB22 would have today's date value. If at a later date S22 gets something filled in AB22 would update to the current date. TIA Greg |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Bob, thanks for your prompt and accurate reply.
Greg |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Auto Insert the present time when a cell is filled with a data, | New Users to Excel | |||
Auto insert new row after current row filled in | Excel Discussion (Misc queries) | |||
Color filled in auto but from where | Excel Worksheet Functions | |||
How do I auto fill long col. filling blanks with last filled cell | Excel Discussion (Misc queries) | |||
Hiding a row if date is filled | Excel Worksheet Functions |