Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, [C11]) Is Nothing Then
On Error GoTo LoiCT
If Target.Value = "" Then Exit Sub
Dim Sh As Worksheet, Rng As Range, sRng As Range
Set Sh = ThisWorkbook.Worksheets("DuLieu")
Set Rng = Sh.Columns("J:J")
Set sRng = Rng.Find(Target.Value, , xlFormulas, xlWhole)
If sRng Is Nothing Then
[c3:C11].Copy
Sh.Cells(1, 2).End(xlDown).Offset(1).PasteSpecial 3, Transpose:=True
Application.CutCopyMode = False
Else
MsgBox sRng.Address
End If
[c3:C11].ClearContents
End If
Err_: Exit Sub
LoiCT:
If Err <> 13 Then MsgBox Error(), , Err
GoTo Err_
End Sub