T
ai giải thích đoạn mã này hộ với
Private Sub Worksheet_Change(ByVal Target As Range)
On Error GoTo Errhandler:
Application.EnableEvents = False
Application.ScreenUpdating = False
If Not Intersect(Target, [g:g]) Is Nothing Then
If Target.Offset(0, -5).Value = "LAP" Or Target.Offset(0, -5).Value = "DESK" Then
Target.Offset(0, -5).Resize(1, 4).Copy Sheet1.[A5000].End(xlUp).Offset(1, 0)
End If
End If
Errhandler:
Application.EnableEvents = True
Application.ScreenUpdating = True
End Sub
thanks
Private Sub Worksheet_Change(ByVal Target As Range)
On Error GoTo Errhandler:
Application.EnableEvents = False
Application.ScreenUpdating = False
If Not Intersect(Target, [g:g]) Is Nothing Then
If Target.Offset(0, -5).Value = "LAP" Or Target.Offset(0, -5).Value = "DESK" Then
Target.Offset(0, -5).Resize(1, 4).Copy Sheet1.[A5000].End(xlUp).Offset(1, 0)
End If
End If
Errhandler:
Application.EnableEvents = True
Application.ScreenUpdating = True
End Sub
thanks

