Excel 2003 (on others not tested)
Private Sub Worksheet_Change(ByVal Target As Range)
For Each cell In Target
If Not Intersect(cell, Range("A2:A100")) Is Nothing Then
cell.ClearContents
cell.Offset(0, 1).Value = CInt(cell.Offset(0, 1).Value) + 1
End If
Next cell
End Sub
if delete string
cell.ClearContents
it's work fine, next sibling cell increments,
but with it next sibling cell value increases by several hundred
Why?
How to do this job correctly?