Removing Shading from Many Paragraphs

by Allen Wyatt
(last updated February 21, 2015)

4

Murray knows how to remove shading from a single paragraph. However, he needs to remove shading from many paragraphs in a document. He wonders how to do so without the need of doing each paragraph individually.

There are actually a few ways you can approach this issue. First, if you don't need shading on any of the paragraphs in your document, you could follow these general steps:

  1. Press Ctrl+A. This selects your entire document.
  2. Display the Home tab of the ribbon.
  3. Use the Shading tool (in the Paragraph group) to remove any shading.

A macro could be easily recorded to perform the above steps; it would end up looking something like the following. (I've removed any comments and extraneous information from the macro. If you recorded one, it would actually be more verbose.)

Sub Macro1()
    Selection.WholeStory
    Selection.Shading.Texture = wdTextureNone
    Selection.Shading.ForegroundPatternColor = wdColorAutomatic
    Selection.Shading.BackgroundPatternColor = wdColorAutomatic
    Selection.Collapse
End Sub

If, instead, you only need to remove shading from some of your paragraphs, you could "repeat" your removal actions. Just remove the shading from one paragraph and the place the insertion point in another paragraph and press F4. (The F4 key repeats the last action taken.) Continue to place the insertion point in other paragraphs and press F4 each time. This continues to work as long as you don't perform some other editing or formatting task.

A third option is the most powerful: Define styles. You can create styles that define how you want your text to look—including the presence or absence of shading—and then apply those styles to paragraphs throughout your document. It is fast, easy, and consistent. (How you define styles is described in other WordTips.)

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (1541) applies to Microsoft Word 2007, 2010, and 2013.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He  is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Two Page Numbering Schemes in the Same Document

Word is great at numbering pages if you only need a single, consistent numbering scheme through the document. If you need two ...

Discover More

Counting with PivotTables

One of the ways you can use PivotTables is to generate counts of various items in a data table. This is a great technique if ...

Discover More

Creating and Saving a Spreadsheet

Before you can work with numbers, dates, and formulas, you need to create your Sheets spreadsheet. You can do so using the ...

Discover More

Comprehensive VBA Guide Visual Basic for Applications (VBA) is the language used for writing macros in all Office programs. This complete guide shows both professionals and novices how to master VBA in order to customize the entire Office suite for their needs. Check out Mastering VBA for Office 2010 today!

More WordTips (ribbon)

Keeping Part of a Paragraph with the Next Block of Text

If you are a WordPerfect user, you may be very familiar with the block-protect feature and wonder if there is a similar tool ...

Discover More

Copying Paragraph Formatting with the Mouse

When you get one paragraph formatted just the way you want, you might want to copy that formatting so it can be applied to a ...

Discover More

Decreasing a Paragraph's Indent

When formatting your document, you often have need to indent paragraphs. If you later want to decrease the indent used on ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 6 - 0?

2017-11-26 04:38:00

Ken Endacott

The methods given will only remove shading where it is applied to whole paragraphs. Shading can be paragraph or character. Character shading can be removed by selecting the shaded text and clicking CTRL + SPACE. However this also removes other character formatting such as bold, underline or italic.

If the shading is applied to scattered text in a large document then there are two choices, the first is to select each paragraph that has some shaded test and apply No Color from the shading menu, just as long as you don’t include the paragraph mark in the selection. A somewhat tedious exercise.

The second method is to use a macro. The following macro will remove both paragraph and character shading from a document without affecting other formatting.

Sub removeShading3()
Dim aRange As Range
Dim aPara As Paragraph
Dim k As Long

For Each aPara In ActiveDocument.Paragraphs
aPara.Range.Select
Selection.Shading.BackgroundPatternColor = wdColorAutomatic
k = aPara.Range.Characters.Count
Set aRange = aPara.Range
If k > 1 Then aRange.MoveEnd unit:=wdCharacter, Count:=-1
DoEvents
aRange.Shading.Texture = wdTextureNone
aRange.Shading.ForegroundPatternColor = wdColorAutomatic
aRange.Shading.BackgroundPatternColor = wdColorAutomatic

Next aPara
MsgBox "Finished removing shading"
End Sub


2015-09-30 15:31:42

awyatt

Dr H: See the WordTips FAQ if you need to know what the ribbon is:

http://wordribbon.tips.net/faq.html

-Allen


2015-09-30 15:20:04

Dr H

WTF is the "Home tab of the ribbon"?

I don't see anything called a "ribbon", nor any "home tabs".

Don't understand why a macro should be necessary to turn off a simple text format like shading. Never had this problem with WordPerfect.


2015-02-21 11:56:15

Barry Thistlethwaite

Ctrl + y does the same thing as F4.


This Site

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.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.