DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Replace any string (even several lines) in multiple word files  (Read 6,281 times)

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,947
Replace any string (even several lines) in multiple word files ?

is it possible ?

replace a string in multiple word files ( files in a folder, files in several folders....)

I tried with Inforapid Search & Replace, but is not able with binary files.

Have you tried with success anyone else ?

Best Regards

Note : I think this feature is not in the official microsoft website
for the last versions. I am using word 2010

ayryq

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 292
Re: Replace any string (even several lines) in multiple word files
« Reply #1 on: June 02, 2015, 06:01 PM »
Here's a VB script that might do it. Can't test it, sorry:

http://www.extendoffice.com/documents/word/1002-word-replace-multiple-files.html

Here's a different one

http://www.word.mvps.org/FAQs/MacrosVBA/BatchFR.htm

And there's a $20 app in the windows store called "Global Office Find And Replace"

If you're willing to try LibreOffice, there's an extension that has a "Batch mode" find and replace that can be used on multiple files at once (button labeled "multiple execute"). It's quite a complicated extension but may be worth figuring out if you need to do this often.

EDIT: I should add that the extension referenced above has built-in support for line breaks. It also has a macro language that can be used for very complicated operations: one of the demos adds HTML tags to a document (e.g. text that is formatted bold in the document has < b > tags put around it)

Eric

ayryq

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 292
Re: Replace any string (even several lines) in multiple word files
« Reply #2 on: June 02, 2015, 06:05 PM »
Double post, sorry

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,947
Re: Replace any string (even several lines) in multiple word files
« Reply #3 on: June 03, 2015, 11:26 PM »
Beautiful nose Eric.

Good information to explorer.
Best Regards
:tellme:

rjbull

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 3,217

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,947

Original address: https://www.donationcoder.com/forum/index.php?topic=41027.0