Hi,
Place this code in worksheet module :
Private Sub Worksheet_Change(ByVal Target As Range)
Dim cell As Range, lastInput As Variant
Set cell = Target.Cells(1, 1)
If cell.Column = Columns("C").Column Then
Application.EnableEvents = False
lastInput = cell.Value
Application.Undo
If lastInput <> "" Then
If cell.Value = "" Then
cell.Value = lastInput
Else
cell.Value = cell.Value & vbLf & lastInput
End If
End If
Application.EnableEvents = True
End If
End Sub
But after this sub is running, any attempt to clear/delete the cell will fail because off the logic run in the code, so another code is needed to do this.
Place this code in standard code module :
Sub ForceClearContent()
Application.EnableEvents = False
Selection.ClearContents
Application.EnableEvents = True
End Sub
You then can call this sub to clear the cell in affected column C.
Regards
Bookmarks