Lọc in phiếu
Bạn dùng Code này hoặc file đính kèm mình làm thỏa điều kiện của Bạn đó

Sub loc()
Dim i As Integer
Dim j As Integer
i = 5
j = 6
On Error Resume Next
With Sheets(2)
.Range("A7:E65000").ClearContents
End With
Dim chon As Range
Set chon = Application.InputBox("Chon 1 ô ma don hang can in phieu: ", "Lay gia tri ma don hang", Default:="A5", Type:=8)
Do While Cells(i, 1).Value <> ""
If Cells(i, 1).Value = chon Then
j = j + 1
With Sheets(2)
.Cells(j, 1).Value = Cells(i, 1).Value
.Cells(j, 2).Value = Cells(i, 4).Value
.Cells(j, 3).Value = Cells(i, 5).Value
.Cells(j, 4).Value = Cells(i, 6).Value
.Cells(j, 5).Value = Cells(i, 5).Value * Cells(i, 6).Value
End With
End If
i = i + 1
Loop
Set chon = Nothing
Sheets(2).Select
End Sub