Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Return unique items ? 1

Status
Not open for further replies.

xq

Programmer
Joined
Jun 26, 2002
Messages
106
Location
NL
why this code doesn't work? this code should return all the unique values from range A2:A100 to range C, but it seems did nothing. anybody have a clue? thanks million!

FindUniqueValues Range("A2:A100"), Range("C1")

Sub FindUniqueVal(SourceRange As Range, TargetCell As Range)
SourceRange.AdvancedFilter Action:=xlFilterCopy, _
CopyToRange:=TargetCell, Unique:=True
End Sub

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top