Louise Harnby | Crime Fiction and Thriller Editor
  • Home
  • Resource library
  • Services
  • Courses
  • Books
  • Podcast
  • Blog
  • Training login
  • Contact
The Editing Blog: for Editors, Proofreaders and Writers

FOR EDITORS, PROOFREADERS AND WRITERS

Using proofreading macros: Highlighting confusables with CompareWordList

22/1/2016

11 Comments

 
Every writer, copy-editor and proofreader comes across words that are used correctly but spelled incorrectly (typos), but we also have to look out for words that are spelled correctly but used incorrectly – this is the world of confusables.
Picture

What are confusables?

Some confusables are not only spelled differently, they sound very different too, e.g. imply/infer; militate/mitigate; reactionary/reactive. In this case, the writer might have misunderstood the meaning.

​
Some confusables are homophones – words that are spelled differently but sound the same, e.g. rein/reign; stationary/stationery; prophecy/prophesy; loath/loathe. In this case, the writer understands the different meanings, but is unsure of the appropriate spelling.

Then there are errors that are simply a result of hands moving too fast over a keyboard – the meanings and correct spellings are known to the writer, but, in their haste, perhaps they’ve transposed a couple of letters or omitted a character.

​Or it may be that the automatic spellcheck has kicked into gear and the writer hasn’t noticed the problem because they’re concentrating on the bigger picture. Examples might include e.g. filed/field; adverse/averse; pubic/public.

Blind spots

Writers aren't the only ones with blind spots. Editorial pros do too. It’s our job to spot these problems and fix them.

​However, we’re only human and most of us have a few blind-spot words that our eyes are, on occasion, less likely to notice, even though we do know the differences in meaning and spelling.


My own blind spots are gaffe/gaff, brake/break and peek/pique/peak. I don’t know why my eye doesn’t spot these pesky confusables as readily, especially when the likes of compliment/complement or stationary/stationery scream at me from the page!

However, I accept that I do have blind spots and have taken steps to ameliorate the problem with a little mechanical help – the 
macro.

How can macros help?

Using macros enables us to identify possible problems before we get down to the business of actually reading, line by line, for sense.

Every time we find an error, we have to think about it and decide whether to amend. By reducing the number of interruptions, we can focus our attention on the flow of the words in front of us and increase efficiency.

For this reason, I, like many of my colleagues, run my macros at the beginning of a project (though I often repeat the process at the end stage too).

My preferred tool

CompareWordList is currently my preferred tool simply because of how easy it is to create and update my own list of words to be checked – words that can, on occasion, be blind spots for me.

As I’ll show below, customizing the list of confusables doesn’t require me to amend the script of the macro once it’s installed. Instead, all I have to do is amend a basic list in a Word document – nice and simple!

1. Create your list of confusables

The first thing to do is to create a list of the words you want the macro to find, and highlight, in a Word document.

  • Simply open up a new Word document, give it a name (I called mine “confusables”), and save it in your preferred folder (I chose to save it in my Macros folder, but you can save yours wherever you want).
  • Make a note of the location of your document (for example, mine is in c:\Users\Louise\Dropbox\Macros\confusables.docx).

​For speed, and so you can see the basic format of the list, you can download a copy of a list 
here. If you want to rename it, do so. Then add words, or remove them, as you see fit.

​2. Get, and tweak, the code

Visit “Highlight Words from a List” and copy the code. If you’re completely new to installing macros, just paste the script in a Word document for now so that you can tweak it easily.

​Below is a screenshot of Wyatt's code. The highlighted sections show where I’ve tweaked the code to suit my own needs.
Picture
Screenshot of Allen Wyatt's CompareWordList macro code

​Tweaks to consider
(1)  I’ve changed Wyatt's code (as per his suggestion) so that it describes where my list of confusables is located: sCheckDoc = "c:\Users\Louise\Dropbox\Macros\confusables.docx". You’ll use the location you made a note of when you created your own list (see the section above – Using CompareWordList 1: Create your list of confusables).

(2) Wyatt's code emboldens the words found by the macro; I wanted them highlighted so I replaced the highlighted text as follows: .Replacement.Highlight = True.

(3) I changed the Match Whole Word instruction to False because I wanted the macro to find part words. This, of course, will pull up some false positives but it was the easiest solution I could find.

(4) I also changed the Match Case instruction to False.

Now that you’ve tweaked the code to suit your own needs, you’re ready to install it (the basic, step-by-step instructions below are provided for the benefit of those who are completely new to macro installation).

3. Install the code

With Word open, open the “View” tab and click on the “Macros” icon on the ribbon.
Picture
This will open up a new window.

If you don’t have any macros already loaded:
  • To get you going, create a test macro that you can delete later.
  • First, make sure the Normal.dotm template is showing in the "Macros in:” box.
  • Type TEST into the “Macro name:” box.
  • Click on the “Create”. Your TEST macro will now show up. From now on, it’ll be easy as pie to add additional macros.
Picture
If you have macros loaded (your TEST macro or any other):
  • Click on “Edit”.
Picture
This will open up a further window:
Picture
  • If necessary, use the scroll bar to take you to the bottom of the text.
  • Paste the CompareWordList script at the end, under “End Sub”
  • Close the window using the X in the top right-hand corner.

The installation is now complete.

Running CompareWordList

  • Open the Word file in which you want to locate potential confusbles.
  • Click the “View” tab.
  • Click the “Macros” icon on the ribbon.
  • Select "CompareWordList" from the list.
  • Click “Run”.

Removing highlights one by one

Here’s a tiny macro that I recorded to remove a highlight as I move through a Word document. Installing this means I simply have to click on a highlighted word and run the macro.

Assigning a shortcut button (see below) makes the job easy and efficient. I decided on Alt H because I don’t have that keyboard shortcut assigned to any function that I carry out regularly.
Sub UndoHighlight()
'
' UndoHighlight Macro
'
'
    Options.DefaultHighlightColorIndex = wdNoHighlight
    Selection.Range.HighlightColorIndex = wdNoHighlight
End Sub
To install: Simply copy the red script above and install it in the same way that you installed the CompareWordList macro.

To create a shortcut key: In Word, select File, Options, Customize Ribbon (1). Click on Customize (2). A new box will open up entitled “Customize keyboard”. In the Categories window (3), scroll down and select Macros. In the Macros window (4), select UndoHighlight. Finally, choose your preferred keyboard combination by typing it into the Press New Shortcut Key window (5). Select Assign and Close.
Picture
To remove ALL highlighting in one go: For this job, Paul Beverley’s your man. A huge number of macros are available via his website: Word Macro Tools.

Hope you find this useful!

About Louise Harnby

Louise Harnby is a line editor, copyeditor and proofreader who specializes in working with crime, mystery, suspense and thriller writers.
​

She is an Advanced Professional Member of the Chartered Institute of Editing and Proofreading (CIEP) and co-hosts The Editing Podcast.

  • Get in touch: Louise Harnby | Crime Fiction & Thriller Editor
  • Connect: X @LouiseHarnby, Facebook and LinkedIn
  • Learn: Books and courses
  • Discover: Resources for authors and editors

11 Comments
    BLOG ALERTS
    Sign up for blog alerts!
    ALERT ME!

    NEWSLETTER
    Sign up for The Editorial Letter.
    SIGN ME UP

    AUTHOR RESOURCES
    Proofreading stamps

    EDITOR RESOURCES
    Proofreading stamps

    BOOKS FOR EDITORS AND WRITERS
    Picture
    Picture
    Picture
    Picture
    MORE BOOKS

    TRAINING COURSES FOR EDITORS
    Picture
    Picture
    Picture
    Blogging for Business Growth course
    MORE COURSES

    TESTIMONIALS
    'I love the clean impact you've brought to my writing'
    Thomas R Weaver

    'The voyage through your edits is an intellectual and craft adventure'
    Dan Flanigan

    'I'm a better writer because you edited my book'
    Rich Leder

    'You are by far the best literary editor I've had'
    ​Nina Fitzpatrick

    'I wholeheartedly recommend her services ... Just don’t hire her when I need her'
    Jeff Carson

    'Sincere thanks for a beautiful and elegant piece of work. First class'
    ​JB Turner
    TESTIMONIALS

    CATEGORIES

    All
    AI
    Audio
    Author Interviews
    Blogging
    Branding
    Business Tips
    Choosing An Editor
    Conscious Language
    Core Editorial Skills
    Crime Writing
    Design And Layout
    Dialogue
    Editorial Tools
    Erotica
    Fiction Editing
    Getting Work
    Grammar Links
    Lean Writing
    Line Craft
    Macros & Word Add Ins
    Managing Emotions
    Managing Emotions Podcast
    Marketing Tips
    Money Talk
    Mood And Rhythm
    Networking
    Online Courses
    PDF Markup
    POV
    Proofreading Marks
    Punctuation
    Q&A With Louise
    Sentence Editing
    Showing And Telling
    Software
    Stamps
    Starting Out
    Story Craft
    Training
    Types Of Editing
    Using Word
    Website Tips
    Work Choices
    Working Onscreen
    Writing Tools


    ARCHIVES

    June 2026
    May 2026
    April 2026
    March 2026
    February 2026
    November 2025
    August 2025
    July 2025
    June 2025
    September 2024
    August 2024
    August 2023
    June 2023
    May 2023
    April 2023
    November 2022
    October 2022
    September 2022
    August 2022
    June 2022
    May 2022
    November 2021
    October 2021
    September 2021
    August 2021
    July 2021
    June 2021
    May 2021
    April 2021
    March 2021
    February 2021
    January 2021
    December 2020
    November 2020
    October 2020
    September 2020
    August 2020
    July 2020
    June 2020
    April 2020
    March 2020
    February 2020
    January 2020
    November 2019
    October 2019
    September 2019
    August 2019
    June 2019
    May 2019
    April 2019
    February 2019
    January 2019
    December 2018
    November 2018
    October 2018
    September 2018
    August 2018
    July 2018
    June 2018
    May 2018
    April 2018
    March 2018
    February 2018
    January 2018
    December 2017
    November 2017
    October 2017
    September 2017
    August 2017
    July 2017
    June 2017
    May 2017
    April 2017
    March 2017
    February 2017
    January 2017
    December 2016
    November 2016
    October 2016
    September 2016
    June 2016
    May 2016
    April 2016
    March 2016
    February 2016
    January 2016
    December 2015
    November 2015
    October 2015
    September 2015
    June 2015
    March 2015
    January 2015
    November 2014
    October 2014
    September 2014
    August 2014
    July 2014
    June 2014
    March 2014
    January 2014
    October 2013
    September 2013
    June 2013
    February 2013
    January 2013
    November 2012
    October 2012
    September 2012
    August 2012
    July 2012
    June 2012
    May 2012
    April 2012
    March 2012
    February 2012
    January 2012
    December 2011

    RSS Feed

Alliance of Independent Authors
Picture
Picture
CIEP Advanced Professional Member
The Publishing Training Centre

INFO ABOUT ME
About Louise
Bio page and business profile
Contact form
Louise's fiction
​Portfolio 
Privacy policy
Professional Practice Code
Qualifications
Terms and conditions
INFO FOR INDIE AUTHORS
​Why choose Louise?
Editorial services
Books and guides
Contact form
​Free resources
​Order form for books
Self-editing book
Testimonials
Transform Your Fiction series
INFO FOR EDITORS
​1:1 business consultations
Books and guides
​​Business Skills for Editors series
Free resources
Order books and courses
​The Editing Podcast
​The Editing Blog

Training courses
Transform Your Fiction series

Want to sign up to my monthly newsletter, The Editorial Letter? 
Picture
© 2011–2026 Louise Harnby
  • Home
  • Resource library
  • Services
  • Courses
  • Books
  • Podcast
  • Blog
  • Training login
  • Contact