PPatte,
It seems to me that you didn't include the header-row of the list you are filtering so perhaps this formula will do:
Sheet3.Range("A1:J" & LastProjItemRow).AdvancedFilter xlFilterCopy, CriteriaRange:=Sheet3.Range("L2:L3"), CopyToRange:=Sheet3.Range("N1:W1"), Unique:=True
(filtering on one value in L3)
I assume that Range("L2:L3") has the header in L2 but if it is in L1 then the formula should be:
Sheet3.Range("A1:J" & LastProjItemRow).AdvancedFilter xlFilterCopy, CriteriaRange:=Sheet3.Range("L1:L3"), CopyToRange:=Sheet3.Range("N1:W1"), Unique:=True
(filtering on two values in L2 and L3)
Jan
I attempted those 2 different code and the same issue keeps popping up. Seeing more of the code would be helpful.
LastProjItemRow = Sheet3.Range("A99999").End(xlUp).Row 'Last Item Row
If LastProjItemRow < 3 Then GoTo NoItems
Sheet3.Range("A2:J" & LastProjItemRow).AdvancedFilter xlFilterCopy, CriteriaRange:=Sheet3.Range("L2:L3"), CopyToRange:=Sheet3.Range("N2:W2"), Unique:=True
LastItemResultRow = Sheet3.Range("N99999").End(xlUp).Row
If LastProjItemRow < 3 Then GoTo NoItems
For ResultRow = 3 To LastItemResultRow
ProjItemRow = Sheet3.Range("V" & ResultRow).Value 'Project Item Row
.Range("D" & ProjItemRow & ":H" & ProjItemRow).Value = Sheet3.Range("O" & ResultRow & ":S" & ResultRow).Value 'Item Details
.Range("J" & ProjItemRow & ":K" & ProjItemRow).Value = Sheet3.Range("T" & ResultRow & ":U" & ResultRow).Value 'Actual Costs
.Range("Q" & ProjItemRow).Value = Sheet3.Range("W" & ResultRow).Value 'DB Row
Next ResultRow