Multiple find and replace in a word document

11,636

I found this thread in which a macro that does more or less what you need is suggested. Perhaps that will help.

Share:
11,636

Related videos on Youtube

terdon
Author by

terdon

Elected moderator on Unix & Linux. I've been using Linux since the late '90s and have gone through a variety of distributions. At one time or another, I've been a user of Mandrake, SuSe, openSuSe, Fedora, RedHat, Ubuntu, Mint, Linux Mint Debian Edition (basically Debian testing but more green) and, for the past few years, Arch. My Linux expertise, such as it is, is mostly on manipulating text and regular expressions since that represents a large chunk of my daily work.

Updated on September 18, 2022

Comments

  • terdon
    terdon over 1 year

    I want to do a series of find and replace operations. Unfortunately, the documents I have to work on are in Word (.docx) format so I cannot script this. These are book chapters so formatting is important (italics, bold, indentation, fonts), I cannot simply convert to plain text.

    Say I have a list of (about 20 different) words as follows:

    black
    blue
    yellow
    

    The replacement I need to do is to add accents so I would have a list of replacements like this:

    bláck
    blúe
    yéllow
    

    Is there a way I can automate this in Word? I would be happy to use another piece of software. I would be even happier if I could do this on Linux using scripting tools (but I guess this is wishful thinking). I have access to Linux and Windows systems, MS Word and LibreOffice.

    • p._phidot_
      p._phidot_ about 5 years
      seems like this interactive macro works well for me.. hope it can be a useful alternative. ( :
  • Griffin
    Griffin about 11 years
    @terdon Thanks for the edit. That's far more simple. I would like to talk to you some time.