Delete row if it equal to

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, MudGuard

Post Reply
wilder
Posts: 7
Joined: Wed Mar 11, 2009 1:24 am

Delete row if it equal to

Post by wilder »

Hello everybody,

I have a problem with 5 textpad files that has more than 30 000 lines.

The first 4 digits of every lines are numbers like "01530, 02216, 02399" and so on.

Some number could be on 35 lines, others on 54 lines. Never the same.

Now, what I would like to do it to delete multiple lines at the same time.

If I have the same number that I listed above some where, I don’t know yet, but let's say that in another textpad file, I have a list of multiple numbers.

By referencing to that list of number, it would delete all lines that have this numbers

It would leave only the ones that are not in the list.

I don’t know if it's clear

ex:

First list on number:

01530
01622
02222


Second list:

01544 34 234
01546 57 1111
01622 33 99
02221 23 79
02222 12 2134



Now after the macro, for the second list, it would delete the row for 01622 and 02222.


The final result:
01544 34 234
01546 57 1111
02221 23 79


Do you think it's possible?

Thanks for your help.

JM
User avatar
Bob Hansen
Posts: 1516
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post by Bob Hansen »

This sounds very similar to a question that I just answered in the past 2 weeks. Don't recall the subject, will need to find out what that was.....
Hope this was helpful.............good luck,
Bob
ak47wong
Posts: 703
Joined: Tue Aug 12, 2003 9:37 am
Location: Sydney, Australia

Post by ak47wong »

Was it this one?
wilder
Posts: 7
Joined: Wed Mar 11, 2009 1:24 am

Post by wilder »

Thanks everybody.

Perfect. Now it work.
User avatar
Bob Hansen
Posts: 1516
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post by Bob Hansen »

Yes, ak47wong, that was it. Thanks for locating that, you were much faster than I was! :oops:
Hope this was helpful.............good luck,
Bob
Post Reply