Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 02-02-2020, 01:46 PM
Guessed's Avatar
Guessed Guessed is offline Macro to delete all words with hyphens? Windows 10 Macro to delete all words with hyphens? 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

Is each word in its own paragraph or is there spaces between words? Assuming they are paragraphs, a search and replace would do it. You can record this as a macro if you wanted to.

Find: [a-zA-Z]{1,}-[a-zA-Z]{1,}^13
Replace: Nothing <- don't put anything in the replace box
Wildcards turned on
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to delete all words with hyphens? How to delete all but specific words in Microsoft Word document Landhaus416 Word 3 09-19-2018 03:00 PM
Macro to delete all words with hyphens? Using VBA to delete text between two words warddegeest Word VBA 1 01-12-2018 04:24 AM
Macro to delete all words with hyphens? Is there a possibility to remove all the hyphens inside words...? dabbler Word 1 01-17-2015 04:37 AM
Macro to delete all words with hyphens? How to find and delete duplicate words in doc cinvest Word 1 09-29-2014 08:34 PM
Macro to delete all words with hyphens? Mask mode and hyphens cyndor Word 6 07-25-2012 06:40 AM

Other Forums: Access Forums

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