Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 11-20-2018, 01:49 PM
macropod's Avatar
macropod macropod is offline How can I combine the code for Search + Replace? Windows 7 64bit How can I combine the code for Search + Replace? Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,523
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

If you have many Find/Replace expressions to process, you could use arrays. See, for example: https://www.msofficeforums.com/word/...fractions.html


Depending on your requirements, you might even keep your find/replace lists in a Excel workbook. See, for example: https://www.msofficeforums.com/word-...html#post72330
This could even be extended to processing a whole folder's documents. See, for example: https://www.msofficeforums.com/word-...er-footer.html

It also seems to me that, what you regard as "a code with 2000+ rules" might be greatly simplified through the use of wildcards and/or other, more efficient, find/replace expressions.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

Tags
code, replace, search



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I combine the code for Search + Replace? Need some vba code to search a word document an replace it if len = 3 Belleke Word VBA 3 10-24-2016 01:00 AM
Search Replace Code BolligeA1 Word 8 02-22-2016 12:32 PM
How can I combine the code for Search + Replace? Need code to combine PDF files. D1TrueGod Word VBA 4 08-15-2015 06:15 AM
Search and replace/insert HTML code into Master File using tags dave8555 Excel 2 02-23-2014 03:51 PM
How can I combine the code for Search + Replace? Please help me to combine these code together lbf200n Word VBA 3 12-09-2012 04:22 PM

Other Forums: Access Forums

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