Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-20-2022, 07:13 PM
Guessed's Avatar
Guessed Guessed is offline Deleting chapters which don't contain certain words? Windows 10 Deleting chapters which don't contain certain words? Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,176
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

I would try to work out a workflow to do this efficiently. The best I can think of is:
1. Put each article into a Rich Text Content Control and set the tag property of each to a static phrase such as "Delete me"
2. Run a macro which searches for each of the key terms and wherever there is a hit, change the tag property of the CC it sits in to "Keep me"


3. At the end of the macro running, delete all the CC ranges that are still tagged as "Delete me"
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
Reply

Tags
chapters



Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapters in Headers RRB Word 4 04-26-2021 03:08 PM
Deleting chapters which don't contain certain words? deleting "s" at end of words cinci-hal Word 1 08-27-2017 02:14 PM
Deleting chapters which don't contain certain words? Need VBA to renumber chapters bobbyrjw Word VBA 3 01-03-2017 12:15 AM
How to number chapters and sub-chapters in a few clicks? Icelandic_Boy Word 1 05-24-2016 11:33 AM
Deleting chapters which don't contain certain words? Deleting a script in an equation without deleting the whole term allankey Word 1 02-15-2014 07:09 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:59 AM.


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