Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I want an automatic date generation in a particular cell when a value in the
cell adjacent to it is filled. But I want the date to be static, i.e. if it is calculated it doesn't change. Can I do this with excel please? Thanks |
#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("H1:H10")) Is Nothing Then With Target .Offset(0, 1).Value = 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 "Jeanette" wrote in message ... I want an automatic date generation in a particular cell when a value in the cell adjacent to it is filled. But I want the date to be static, i.e. if it is calculated it doesn't change. Can I do this with excel please? Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
DAYS360 where Start Date is Static and End Date is Latter of Two Dates | Excel Discussion (Misc queries) | |||
Static date | Excel Discussion (Misc queries) | |||
How do I set a static date? | Excel Worksheet Functions | |||
static date | Excel Worksheet Functions | |||
Automatic update of date once, then remains static | Excel Worksheet Functions |