View Single Post
 
Old 01-20-2012, 12:07 PM
Catalin.B Catalin.B is offline Windows Vista Office 2010 32bit
Expert
 
Join Date: May 2011
Location: Iaşi, Romānia
Posts: 386
Catalin.B is on a distinguished road
Default

This is the way to get a good result
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim RNG As Range, cell
Set RNG = ActiveSheet.Range("A2:A10")
If Not Intersect(Target, RNG) Is Nothing Then
For Each cell In RNG
If Len(cell) > 0 And Not IsEmpty(cell) Then
cell.Offset(0, 1) = Now()
End If
Next cell
End If
End Sub
Attached Files
File Type: xlsm worksheet change.xlsm (18.2 KB, 9 views)
Reply With Quote