congtutapyeu
Thành viên mới

- Tham gia
- 2/11/12
- Bài viết
- 12
- Được thích
- 2
Thử thế này xem saoEm muốn kết chuyển phiếu như trong file đính kém, mong các anh giúp đỡ.
Private Sub Worksheet_Change(ByVal Target As Range)
Application.ScreenUpdating = False
If Target.Count = 1 Then
If Target.Column = 5 And UCase(Target) = "X" Then
Target.Offset(, -3).Resize(, 3).Copy
With Sheets(Target.Offset(, -3).Value)
.[B65536].End(3).Offset(1).PasteSpecial 3
.[A65536].End(3).Offset(1) = Target.Offset(, -3) _
& Right(Val(Right(.[A65536].End(3), 3)) + 1001, 3)
End With
Application.CutCopyMode = False
End If
End If
Application.ScreenUpdating = True
End Sub