Chào thầy
Em làm code này đúng không
Sub Dien_du_Lieu()
Dim i As Integer
Dim j As Integer
Dim lr As Integer
Dim lrdl As Integer
lr = Sheet1.Range("E" & Rows.Count).End(xlUp).Row
lrdl = Sheet1.Range("I" & Rows.Count).End(xlUp).Row
For i = 7 To lr
For j = 7 To lrdl
If Sheet1.Cells(i, 5) = Sheet1.Cells(j, 9) Then
Sheet1.Cells(i, 6).Value = Sheet1.Cells(j, 10).Value
End If
Next j
Next i
MsgBox " Da dien xong du lieu "
End Sub
chào bạn nhìn code thì không thấy gì sai, bạn phải check trong file thực tế nhé.