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.)

Note:

If you would like to know how to use the macros described on this page (or on any other page on the WordTips sites), I've prepared a special page that includes helpful information. Click here to open that special page in a new browser tab.

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

Automatic Lines for Dividing Lists

When preparing a report for others to use, it is not unusual to add a horizontal line between major sections of the ...

Discover More

Hiding and Displaying Hidden Text

You can easily hide text by simply changing the attributes associated with the text. Once that is done, you can turn the ...

Discover More

Saving and Closing All Open Documents

Want to close or save all your documents at the same time? This trick does it for you.

Discover More

The First and Last Word on Word! Bestselling For Dummies author Dan Gookin puts his usual fun and friendly candor back to work to show you how to navigate Word 2013. Spend more time working and less time trying to figure it all out! Check out Word 2013 For Dummies today!

More WordTips (ribbon)

Adding a Border around Multiple Paragraphs

Word makes it very easy to apply formatting to the paragraphs in your documents. Some of that formatting may be ...

Discover More

Creating a Double Hanging Indent

A hanging indent is a type of paragraph formatting in which all lines of the paragraph are indented from the left margin ...

Discover More

Compound List Formatting

Word can help you do quite a bit of complex formatting to your lists, both bulleted and numbered. Using the steps ...

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 three minus 2?

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.