Please Note: This article is written for users of the following Microsoft Word versions: 2007 and 2010. If you are using an earlier version (Word 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Word, click here: Reversing Type.
by Allen Wyatt
(last updated December 1, 2015)
There may be a time when you want to "reverse" the type in a particular paragraph. For instance, you may want the paragraph to show as white text on a black background. This can be done easily various ribbon tools. If you want to do it in one easy step, however, you can use this VBA macro:
Sub Reverse() Selection.StartOf Unit:=wdParagraph, Extend:=wdMove Selection.MoveEnd Unit:=wdParagraph Selection.ParagraphFormat.Shading.BackgroundPatternColorIndex = wdBlack Selection.Font.ColorIndex = wdWhite End Sub
All you need to do is place the insertion point somewhere within the paragraph, and then run the macro. As with most any macro, you can assign it to the Quick Access Toolbar or a shortcut key so you can use it quickly.
Of course, the only real reason to use a macro such as this is if you don't use styles and templates for your documents. If you do, then you should accomplish the same functionality by simply defining a style that shows the paragraph in "reverse" type. Whenever you apply the style, the paragraph appears in the desired format.
WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (11971) applies to Microsoft Word 2007 and 2010. You can find a version of this tip for the older menu interface of Word here: Reversing Type.
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!
Need to get rid of the formatting applied to a bunch of text? One of the easiest ways to do this is to use Notepad in ...Discover More
When you allow Word to naturally flow your text through a document, you may find that the text on each page ends at a ...Discover More
Need to get rid of direct, explicit formatting applied to a document? Here's an easy way to do it using familiar Word tools.Discover More
FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."
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.