In steps - 1
Add the following to your sub after the initial If/ElseIf lines
If Not (Range("A9", Selection.End(xlDown)).Find(What:=[A5].Text, _
MatchCase:=False) Is Nothing) Then
[A5].Select
MsgBox "Code Exists"
Exit Sub
End If
-2
Sub ClientDelete()
Dim ToDelete As Range
Set ToDelete = Range("A9", Selection.End(xlDown)).Find(What:=[A5].Text, MatchCase:=False)
If ToDelete Is Nothing Then
MsgBox "Code not found"
[A5].Select
Exit Sub
Else
ToDelete.EntireRow.Delete
End If
End Sub
-3
Add "Application.ScreenUpdating = False" at the head of your code and "Application.ScreenUpdating = True" at the end.