Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 10-29-2023, 10:50 PM
Guessed's Avatar
Guessed Guessed is offline Remove parenthesis that contain four digits or etal word vba Windows 10 Remove parenthesis that contain four digits or etal word vba 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

First, do a wildcard search for
\(* [0-9]{4}*\)
Replace with nothing

Then if there are some et al paragraphs left, do another wildcard search
\(*et al*\)
Replace with nothing

You can record these actions to get a first draft of the code that performs it. You can then clean up the code to make it less confusing or just use it as recorded.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
 

Tags
find & replace, vba

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove parenthesis that contain four digits or etal word vba How to convert text that is enclosed inside parenthesis in a word document into numbered footnotes? BobT Word 5 07-27-2018 01:17 PM
Remove parenthesis that contain four digits or etal word vba Find and remove right parenthesis and preceding 11 characters kevinbradley57 Excel Programming 11 03-25-2018 08:24 PM
Find and Replace Parenthesis with Itallics Richard Carr Word 1 01-06-2015 06:44 PM
Separate/ Remove digits from a string of Numbers QA_Compliance_Advisor Excel 3 07-23-2014 04:59 AM
Remove parenthesis that contain four digits or etal word vba Problems merging in last 4 digits of an account higher than 16 digits Glynda Mail Merge 1 04-08-2011 12:17 AM

Other Forums: Access Forums

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