Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-27-2017, 09:04 AM
ewso ewso is offline remove rows without certain word Windows 10 remove rows without certain word Office 2016
Advanced Beginner
remove rows without certain word
 
Join Date: Nov 2016
Posts: 80
ewso is on a distinguished road
Default remove rows without certain word

I have several rows in a document that don't contain certain words and I need to remove them all and keep only the rows with the words. The two words are WERE and WAS. The words are often pressed up against other words in the row, like this...



abcdWASabcd
abcdWEREabcd

It's ok for the rows to be like that, but I need to remove every row that doesn't contain those words. The rows are not in a table. It's just a bunch of rows of text.
Can this be done with a macro?

Thanks
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
remove rows without certain word How to remove blank spaces between rows in a table, Jamal NUMAN Word 2 04-28-2017 12:59 PM
remove rows without certain word Delete All empty Rows - Print - Undo all Rows deleted Bathroth Word VBA 1 10-01-2014 01:40 PM
remove rows without certain word Remove rows less than 10 gbaker Excel Programming 18 07-21-2014 04:51 AM
remove rows without certain word Grouping table rows to prevent individual rows from breaking across pages dennist77 Word 1 10-29-2013 11:39 PM
remove rows without certain word How to remove blank rows from a specified range? Learner7 Excel 1 04-19-2011 02:45 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:26 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft