Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #9  
Old 03-04-2020, 03:20 PM
Guessed's Avatar
Guessed Guessed is offline I am trying to delete text of any format between two bold, recurring keywords or symbols Windows 10 I am trying to delete text of any format between two bold, recurring keywords or symbols 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

Since you haven't provided your code we can just talk in concepts.

I would approach this by using a recurring function along the lines of:
1. Build a list of all the relevant ranges and sort in length order
2. Remove the shortest
3. Repeat steps 1 & 2 until there are no more ranges found.

The important part is after removing the shortest range, you do a complete rebuild of the list
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
 

Tags
word vba macro



Similar Threads
Thread Thread Starter Forum Replies Last Post
I am trying to delete text of any format between two bold, recurring keywords or symbols bold (or unbold) section of text instead of bold toggling Burt Word 6 04-06-2019 09:09 AM
I am trying to delete text of any format between two bold, recurring keywords or symbols Macro to delete text from cells with specific format Soenke Word VBA 4 09-01-2016 08:55 AM
Bold each line of text that starts with a recurring symbol qubie Word 6 08-26-2016 07:10 AM
I am trying to delete text of any format between two bold, recurring keywords or symbols Text in #1 is made bold, rest of the document is edited, text in #1 is now not bold footer-assistance Word 1 06-29-2015 03:49 AM
Format Bold in one line makes all lines bold Nitte Word 2 02-07-2013 12:34 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:04 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