sharky12345
Well-known Member
- Joined
- Aug 5, 2010
- Messages
- 3,422
- Office Version
- 2016
- Platform
- Windows
Can someone show me how to adapt this code so that it only copies unique values where the cell in column C matches the value of Sheet4 E2?
Code:
LastRow = Sheet7.Cells(Rows.Count, "A").End(xlUp).Row
Sheet7.Range("D3:D" & LastRow).AdvancedFilter Action:=xlFilterCopy, CopyToRange:=Sheet4.Range("E4"), Unique:=True