Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() Hi I use this code to look at cells in column D. If any has new content , then it puts the date in the adjacent cell in column C : Private Sub Workbook_SheetChange(ByVal Sh As Object, _ ByVal Target As Range) On Error GoTo enditall Application.EnableEvents = False If Intersect(Range(Target(1).Address), _ Range("D:D")) _ Is Nothing Then GoTo enditall With Target If .Value < "" Then With .Offset(0, -1) 'Put in todays date : .Value = Date End With Else: .Offset(0, -1).Value = "" End If End With enditall: Application.EnableEvents = True End Sub Unfortunately , it doesn't work when pasting content from other cells into the cell in D. It only works when making direct typed entries. Can someone suggest an amendment which would update after any entry (pasted or directly entered) to the cell in D? Best Wishes |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Text Recognition | Excel Discussion (Misc queries) | |||
Barcode recognition | Excel Discussion (Misc queries) | |||
Alphanumeric Recognition | Excel Programming | |||
Formula for recognition | Excel Discussion (Misc queries) | |||
Letter recognition | Excel Programming |