Option Explicit
Sub Paste()
Dim DongCuoi As Long, i As Byte, DongCuoi1 As Long
Dim wb_open As Workbook, wb_th As Workbook
Set wb_th = ThisWorkbook
With Application.FileDialog(msoFileDialogFilePicker)
.AllowMultiSelect = True
.Show
For i = 1 To .SelectedItems.Count
Set wb_open = Workbooks.Open(.SelectedItems(i))
DongCuoi1 = wb_open.Sheets("Sheet1").Range("A" & Rows.Count).End(xlUp).Row
wb_open.Worksheets("Sheet1").Range("A2:C" & DongCuoi1).Copy
Workbooks("Book5").Activate
DongCuoi = Sheet2.Range("A" & Rows.Count).End(xlUp).Row
Range("A" & DongCuoi + 1).PasteSpecial xlPasteValues
wb_open.Close savechanges:=False
Next
End With
End Sub
Trong trường hợp sử dụng .copy thay vì .value thì có trường hợp nào có thể xảy ra lỗi không ạ