Hi,
Was that a typo in your code where the change to be detected is in column 4 (D) but the macro refers to column 10?
I assume it is column 4.
Private Sub Worksheet_Change(ByVal Target As Range)
Dim delRow As Long, nxtRow As Long, stSheet As String
Application.EnableEvents = False
'Was change made to Column D?
If Target.Column = 4 Then
stSheet = Target
If LCase(stSheet) = "yes" Then stSheet = "Completed"
'If yes, was a Y entered?
If LCase(Target) = "yes" Or LCase(Target) = "no" Or LCase(Target) = "maybe" Then
'If Yes, Store Row number, Determine next empty Row in
'Cleared sheet, Move Row, Delete Row
delRow = Target.Row
nxtRow = Sheets(stSheet).Range("A" & Rows.Count).End(xlUp).Row + 1
Target.EntireRow.Cut Destination:=Sheets(stSheet).Range("A" & nxtRow)
Rows(delRow).EntireRow.Delete shift:=xlUp
End If
End If
Application.EnableEvents = True
End Sub
Bookmarks