Written by Allen Wyatt (last updated August 4, 2023)
This tip applies to Word 2007, 2010, 2013, 2016, 2019, and Word in Microsoft 365
When James applies a highlight color (such as yellow) to a word, the background around that word turns yellow. When he then selects that highlighted word and types a new word over it, the new word appears, but the yellow highlighting remains. To get rid of the yellow highlighting, he must select the word again and "unhighlight" it. Since James has to do this hundreds of times a day, it gets old. He wonders if there is a way to make the highlighting disappear when selecting and typing over a word.
The short answer is that there is no easy way to do this. The reason, apparently, has to do with your text and the highlighting being on different layers of the document. When you select some highlighted text and start typing, then you are affecting only the layer on which your text resides; the layer on which the highlighting resides is not affected.
There are a few workarounds you can try out, though. One is to simply press the Delete key after you select your text and before you start typing. This does affect both layers, and you can immediately begin typing without the lingering highlight.
A second approach is to use Word's shortcut key that controls highlighting: Ctrl+Alt+H. This shortcut toggles the highlight on whatever text is selected, so it is a quick way to turn the highlight on and off.
A third approach is great if you are using styles and the highlighted text doesn't have any explicit formatting (besides highlighting) attached to it. All you need to do after selecting the text is press Ctrl+Spacebar, which removes any explicit formatting, including the highlighting.
A fourth approach is to use a macro to remove the highlighting. The following will remove the highlighting from whatever text you have selected:
Sub RemoveHighlight1() Options.DefaultHighlightColorIndex = wdNoHighlight Selection.Range.HighlightColorIndex = wdNoHighlight End Sub
You can assign this macro to a shortcut key, which will make it easy to apply as you are typing along. In many respects, it isn't much different than the second approach I am suggesting, using the Ctrl+Alt+H shortcut. You could, though, modify the macro just a bit to make it even more valuable:
Sub RemoveHighlight2() Selection.Words(1).Select Options.DefaultHighlightColorIndex = wdNoHighlight Selection.Range.HighlightColorIndex = wdNoHighlight End Sub
Assuming you want to remove the highlighting from a word, all you need to do is position the insertion point within the word (no need to select the entire thing), run the macro, and then start typing. The macro selects the word and turns off highlighting, and since you start typing right after the macro is complete, you end up replacing whatever word you affected.
Note:
WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (13574) applies to Microsoft Word 2007, 2010, 2013, 2016, 2019, and Word in Microsoft 365.
Create Custom Apps with VBA! Discover how to extend the capabilities of Office 2013 (Word, Excel, PowerPoint, Outlook, and Access) with VBA programming, using it for writing macros, automating Office applications, and creating custom applications. Check out Mastering VBA for Office 2013 today!
Word provides fields that allow you to insert a variety of informational items about your document into the document ...
Discover MoreIf you know the character codes for some characters of interest, you can use those codes to do lots of tasks. This tip ...
Discover MoreIf you inadvertently move to the end of the document, you might be wondering how to get your insertion point back to ...
Discover MoreFREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."
2019-11-21 07:18:16
Paul Stregevsky
Ric, by highlighting, do you mean shading every character in dark gray? If so, that's not the "highlight" feature. Somehow, Word thinks you're typing everything In a field. To confirm whether this US what's happening, go to File > Options > Advanced > Show document content, and make sure Field Shading is set to Never. If the dark-gray shading disappears, that's your problem. Maybe someone can weigh in with a way to fix it.
2019-11-20 13:25:40
Ric
Maybe the problem is that my scenario is different, but none of your solutions are sufficient to fix the fact that Microsoft word 2016 is suddenly malfunctioning: automatically highlighting everything I type, in spite of the fact that I don't have highlighting turned on, in spite of defining the entire paragraph as "normal" stylesheet before I resume typing. I have used Word for DECADES, and I have used this specific document for days. Now, out of the blue, Word wants to highlight everything! What gives? Is there a solution for this??
2018-11-02 15:59:58
Lisa
Ctrl + spacebar doesn't work for me either. The highlighting remained.
2018-10-22 10:04:31
Fred Seelig
Allen, the first option only works if you delete to a point that doesn't have highlighting. (If you delete with highlighting continuing after what you deleted, it doesn't work.) I'm using Word 2016/365, but this has always been my experience, going back to Word 6.0 -- whatever styling was in the location that you just deleted remains active for whatever you type next. It's easiest to see this by turning on the Show/Hide function and experimenting.
Ctrl+Alt+H works fine.
Ctrl+Spacebar doesn't work for me. It changes other style attributes, such as font type and point size, but the highlighting remains.
I haven't tried the macro.
Got a version of Word that uses the ribbon interface (Word 2007 or later)? This site is for you! If you use an earlier version of Word, visit our WordTips site focusing on the menu interface.
Visit the WordTips channel on YouTube
FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2024 Sharon Parq Associates, Inc.
Comments