Hi, timbo1957,
have a look at the workbook. I added a new sheet (Criteria) as well as some code (the range for the criteria is limited to 1 row/creditor in these codes) and added Customer to the headings:
Sub CopyUnique()
Dim lngLast As Long
With Sheets("Download")
lngLast = .Cells(.Rows.Count, "I").End(xlUp).Row
End With
Sheets("Download").Range("A3:I" & lngLast).AdvancedFilter _
Action:=xlFilterCopy, _
CriteriaRange:=Range("A1:I2"), _
CopyToRange:=Range("A12:I12"), _
Unique:=True
End Sub
Sub CopyAll()
Dim lngLast As Long
With Sheets("Download")
lngLast = .Cells(.Rows.Count, "I").End(xlUp).Row
End With
Sheets("Download").Range("A3:I" & lngLast).AdvancedFilter _
Action:=xlFilterCopy, _
CriteriaRange:=Range("A1:I2"), _
CopyToRange:=Range("A12:I12"), _
Unique:=False
End Sub
To me Customer1 and Customer 1 are not identical due to the bank.
Ciao,
Holger
Bookmarks