Nguyên9810
Thành viên mới
- Tham gia
- 24/5/23
- Bài viết
- 1
- Được thích
- 0
Sub Tim_kiem()
Dim data_rg, criteria_rg, copy_rg As Range
Set data_rg = ThisWorkbook.Sheets("Danh sach NX").Range("B5").CurrentRegion
Set criteria_rg = ThisWorkbook.Sheets("Sheet1").Range("B3").CurrentRegion
Set copy_rg = ThisWorkbook.Sheets("Sheet1").Range("B6").CurrentRegion
ThisWorkbook.Sheets("Sheet1").Rows("7:10000").EntireRow.Delete
data_rg.AdvancedFilter xlFilterCopy, criteria_rg, copy_rg
End Sub
Dim data_rg, criteria_rg, copy_rg As Range
Set data_rg = ThisWorkbook.Sheets("Danh sach NX").Range("B5").CurrentRegion
Set criteria_rg = ThisWorkbook.Sheets("Sheet1").Range("B3").CurrentRegion
Set copy_rg = ThisWorkbook.Sheets("Sheet1").Range("B6").CurrentRegion
ThisWorkbook.Sheets("Sheet1").Rows("7:10000").EntireRow.Delete
data_rg.AdvancedFilter xlFilterCopy, criteria_rg, copy_rg
End Sub