' Bai tap copy pat
Sub copy1()
Dim DongCuoi As Long
DongCuoi = Sheet6.Range("B14 : C" & Rows.Count).End(xlUp).Row
Range("B14:C & dongcuoi ").Selection.Copy
End Sub
Sub Xoa_Du_Lieu()
Dim DongCuoi As Long
DongCuoi = Sheets("Dmuc").Range("B15 : C" & Rows.Count).End(xlUp).Row
Sheets("Dmuc").Range("B15:C & dongcuoi ").ClearContents
End Sub
Sub dan_du_lieu()
Dim DongCuoi As Long
DongCuoi = Sheets("Dmuc").Range("B15 : C" & Rows.Count).End(xlUp).Row
Sheets("Dmuc").Range("B15:C & dongcuoi ").PasteSpecial
End Sub
Sub copy_dan()
Call copy1
Call Xoa_Du_Lieu
Call dan_du_lieu
End Sub