Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
since you helped me so graciously... i wonder if i could take it a step further...
when i delete the "C," the date in the adjacent column remains. how would i delete that date automatically if the "C" is deleted? thanks! jill. "sebastienm" wrote: Hi Jill, The following event macro has to be placed in the corresponding sheet code module. It assumes the C is entered in column rgSEntry (here, A:A. If not, change the Set RgSEntry line). Anytime a cell is changed in column rgSEntry (A:A), it writes the current date to the cell on its right (here, B:B). '------------------------------------------------------------- Private Sub Worksheet_Change(ByVal Target As Range) Dim rgSEntry As Range Dim Rg As Range Dim cell As Range Set rgSEntry = Range("A:A") '<---- change here 'column where the C is placed Application.EnableEvents = False Set Rg = Application.Intersect(rgSEntry, Target) If Not Rg Is Nothing Then Rg.Offset(0, 1).Value = Date 'Write data one column on the right End If Application.EnableEvents = True End Sub '------------------------------------------------------------------ -- Regards, Sébastien |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How input today's date and keep that date | Excel Worksheet Functions | |||
input a date or update it based on date in another cell | New Users to Excel | |||
Create a formula in a date range to locate a specific date - ecel | Excel Discussion (Misc queries) | |||
date input | Excel Discussion (Misc queries) | |||
how do i make a cell date sensitive to execute a formula or input. | Excel Discussion (Misc queries) |