PHP:
SourceWb.Activate
With Sheet1
'eR - iR : so dong chua dl
'.Range("B" & fR & ":B" & eR - iR + fR).Value = TgtWb.Sheets(i).Range("M" & iR & ":M" & eR).Value 'Lay gia tri
.Range("B" & fR & ":B" & eR - iR + fR).Value = TgtWb.Sheets(i).Range(Cells(iR, eC), Cells(eR, eC)).Value 'Lay gia tri
End With
Mà câu lệnh dưới lại chạy..Range("B" & fR & ":B" & eR - iR + fR).Value = TgtWb.Sheets(i).Range(Cells(iR, eC), Cells(eR, eC)).Value 'Lay gia tri
Xin cám ơn!'.Range("B" & fR & ":B" & eR - iR + fR).Value = TgtWb.Sheets(i).Range("M" & iR & ":M" & eR).Value 'Lay gia tri