kcpettit13
New Member
- Joined
- Jun 8, 2016
- Messages
- 5
Hello,
I am getting a Run-time error 13: Type mismatch when I enter anything in column 8 that does not = "YES". The red below is where the error is coming from. Can anyone help?
Thanks!
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 8 Then
If Target.Value = "YES" Then
Application.EnableEvents = False
Target.EntireRow.Copy Sheets("Completed").Range("A" & Rows.Count).End(xlUp).Offset(1)
Target.EntireRow.Delete
Application.EnableEvents = True
End If
Else
If Target.Column = 11 Then
If Target.Value > 0 Then
Application.EnableEvents = False
Target.EntireRow.Copy Sheets("Missing_Raws").Range("A" & Rows.Count).End(xlUp).Offset(1)
Target.EntireRow.Delete
Application.EnableEvents = True
End If
End If
End If
End Sub
I am getting a Run-time error 13: Type mismatch when I enter anything in column 8 that does not = "YES". The red below is where the error is coming from. Can anyone help?
Thanks!
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 8 Then
If Target.Value = "YES" Then
Application.EnableEvents = False
Target.EntireRow.Copy Sheets("Completed").Range("A" & Rows.Count).End(xlUp).Offset(1)
Target.EntireRow.Delete
Application.EnableEvents = True
End If
Else
If Target.Column = 11 Then
If Target.Value > 0 Then
Application.EnableEvents = False
Target.EntireRow.Copy Sheets("Missing_Raws").Range("A" & Rows.Count).End(xlUp).Offset(1)
Target.EntireRow.Delete
Application.EnableEvents = True
End If
End If
End If
End Sub