You do not need to import your text into an Excel file or any other software. Hold the Ctrl + H button down. Type in "Find What Text" with Replace With Text" (leave blank) and then select Replace All. Problem solved!!!
Main Topics
Browse All TopicsHi,
I need some help to delete rows in a text file which contain specific text. The text file is a log of a backup session. Would there be any quick way to exclude/delete all the lines which contain the text "$backup.dir". As there are probably over 100 occurrences of this text, manual deletion is not the way to go.
I'm an absolute newbie at vb or macros. If there is a solution for dummies, it would be wonderful.
Many thanks to all who can help.
Regards
Chiarne
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hi NicksonKoh,
When you suggest to create a header, do you mean just add another row at the top of the spreadsheet and enter the text "$backup.dir".
Here's an example of the type of lines I would like to delete:
Deleting: E:\Bak_C\Users Shared Folders\wayne\~old wayne data\My Documents\unit437-39evan\$
Deleting: E:\Bak_C\Users Shared Folders\wayne\~old wayne data\My Documents\unit1237-39evan\
Deleting: E:\Bak_C\Users Shared Folders\wayne\~old wayne data\My Documents\TEMPLATES\$backu
Regards
Chiarne
No exactly, just insert a blank row at the top and give it some header name like e.g. "Folder". The header row is just a dummy row to separate the data from the filter row. It's optional and is only a neater way to do things.
After you insert the header row, you do the filter from Tools > Filter. A dropdown will appear beside on the header. From the dropdown, choose custom and in that filter dialog, choose contains and enter "$backup.dir"
Business Accounts
Answer for Membership
by: NicksonKohPosted on 2007-10-17 at 18:50:07ID: 20098302
Hi Chiarne,
This I think is easiest done in Excel with either sort or filtering. Follow the below steps
1) Open the text file in Excel.
2) Provide a simple header to do an auto filtering.
3) From the filter dropdown select that specific text or u can use the custom to specify the column is to contain certain text.
4) Select all these filtered rows and delete.
5) Use Save As to save the file back as a text file.
Cheers,
NicksonKoh