Delete all Duplicates including itself

Help with writing and playing macros

Delete all Duplicates including itself

Postby HansFink » Mon Jun 26, 2006 9:15 am

Hello,

I want to remove all duplicate entries from a file including itself, so there are no lines left with that name.

Example:

Before.
Code: Select all
113F
26566Fzu
113F
523FD798
ADF465EW
113F


After.
Code: Select all
26566Fzu
523FD798
ADF465EW


I tried the Sort function but it leaves one line with the same name.

How can I do that?
User avatar
HansFink
Basic User
Basic User
 
Posts: 17
Joined: Fri Jan 27, 2006 12:00 am

Re: Delete all Duplicates including itself

Postby Mofi » Mon Jun 26, 2006 1:18 pm

Hi!

I think you already know my macro at How do I remove duplicate lines?, aren't you.

You only have to replace the command CopyAppend by CutAppend and you will get a file where all duplicates are deleted completely and the report contains the deleted lines.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4062
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: Delete all Duplicates including itself

Postby HansFink » Mon Jun 26, 2006 1:38 pm

Yes, I do know your macro and thanks again for your help.
User avatar
HansFink
Basic User
Basic User
 
Posts: 17
Joined: Fri Jan 27, 2006 12:00 am


Return to Macros