Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Like a timestamp
right click on the worksheet and insert code like this: Private Sub Worksheet_Change(ByVal Target As Excel.Range) If Target.Count 1 Then Exit Sub If Target.Row < 1 And Target.Column < 1 Then If IsEmpty(Cells(Target.Row, 1)) Then On Error GoTo ErrHandler Application.EnableEvents = True Cells(Target.Row, 1).Value = Date Cells(Target.Row, 1).NumberFormat = "mm/dd/yyyy" End If End If ErrHandler: Application.EnableEvents = True End Sub -- Regards, Tom Ogilvy Ken wrote in message om... Hi. When data is entered into a new row, I want to initialize a value into one of the row's cells. How would I do that? Thanks! Ken |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do you initialize the values in a circular reference? | Excel Discussion (Misc queries) | |||
Need to re-initialize cell with original formula | Charts and Charting in Excel | |||
Data Entry Online, Data Format, Data Conversion and Data EntryServices through Data Entry Outsourcing | Excel Discussion (Misc queries) | |||
Does Word have to initialize the root folders everytime? | Excel Discussion (Misc queries) | |||
Userform Initialize & combo box values | Excel Discussion (Misc queries) |