Copy đoạn code này thaycho code copy cũ của bạn
Sub COPPY()
Dim M As Integer
M = 6
Do While Cells(M, "B") <> ""
M = M + 1
Loop
M = M - 1
Sheets("SOLIEU").Select
Range(Cells(6, 1), Cells(M, 4)).Select
Selection.Copy
Sheets("ketqua").Select
Range("A6").Select
ActiveSheet.Paste
Range("A6:A" & Range("A65000").End(xlUp).Row).Resize(, 4).Select
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
Selection.Borders(xlEdgeLeft).LineStyle = xlContinuous
Selection.Borders(xlEdgeTop).LineStyle = xlContinuous
Selection.Borders(xlEdgeBottom).LineStyle = xlContinuous
Selection.Borders(xlEdgeRight).LineStyle = xlContinuous
Selection.Borders(xlInsideVertical).LineStyle = xlContinuous
Selection.Borders(xlInsideHorizontal).LineStyle = xlContinuous
Range("A6").Select
End Sub