Welcome toWord.Tips.Net
Ask a Word Question
Make a Comment
Beauty Tips
Car Tips
Cleaning Tips
College Tips
Cooking Tips
Excel2007 Tips
ExcelTips
Family Tips
Gardening Tips
Health Tips
Home Tips
Money Tips
Organizing Tips
Pest Tips
Pet Tips
Wedding Tips
Word2007 Tips
WordTips
Standardizing Note Reference Placement
Selecting Printing of Color Pictures
Word does not have the inherent capability to print color separations. Instead, you typically must use a full-featured desktop publishing program such as InDesign to accomplish this task. That being said, you can perform a rudimentary form of color separation by simply changing the text color you don't want to print to white, and then printing the document. Reversing the process will then print the other color.
For instance, the following VBA macro will allow you to print color-separated text for a document that contains both red and black text:
Sub PrintSeps()
ActiveDocument.Save
Selection.HomeKey Unit:=wdStory
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
'Change Red to White
Selection.Find.Font.ColorIndex = wdRed
Selection.Find.Replacement.Font.ColorIndex = wdWhite
With Selection.Find
.Text = ""
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = True
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
ActiveDocument.PrintOut
'Change White back to Red
Selection.Find.Font.ColorIndex = wdWhite
Selection.Find.Replacement.Font.ColorIndex = wdRed
Selection.Find.Execute Replace:=wdReplaceAll
'Change Auto to White
Selection.Find.Font.ColorIndex = wdAuto
Selection.Find.Replacement.Font.ColorIndex = wdWhite
Selection.Find.Execute Replace:=wdReplaceAll
'Change Black to White
Selection.Find.Font.ColorIndex = wdBlack
Selection.Find.Replacement.Font.ColorIndex = wdWhite
Selection.Find.Execute Replace:=wdReplaceAll
'Change Red to Black
'This is done so that Red will print as Black
'On some printers, non-black colors always
'print as a shade of gray. You want them only
'as black
Selection.Find.Font.ColorIndex = wdRed
Selection.Find.Replacement.Font.ColorIndex = wdBlack
Selection.Find.Execute Replace:=wdReplaceAll
ActiveDocument.PrintOut
ActiveWindow.Close SaveChanges:=wdDoNotSaveChanges
End Sub
Note a couple of things about the PrintSeps macro. First, it saves your document. This is done because when the macro is done running, it throws out the document. Saving allows you to load the document from disk at a later time. The other thing to note is that this works only for documents that contain only red and black text. If you have other colors, those colors will print on both passes. If you have white text, it will print with the red pass. If you have graphics, no separation is done on them. (If you have graphics and want them separated, you definitely should be using a desktop publishing program.)
Tip #1795 applies to Microsoft Word versions: 97 2000 2002 2003 2007
Step Up and Take Control! Subscribers to WordTips know just how valuable a resource it is. WordTips Premium provides twice the number of exceptional, easy-to-understand tips every week in an ad-free newsletter, as well as substantial discounts on WordTips archives and e-books.