
Tips.Net > WordTips Home > Macros > Printing Styles in a Macro
Summary: Using a Macro to print out a list of styles. (This tip works with Microsoft Word 97, Word 2000, Word 2002, Word 2003, and Word 2007.)
You probably already know that you can print a list of the styles defined in a document by using the controls in the Print dialog box. What if you want to do the same task from within a macro, however? In that case you would use the PrintOut method as follows:
ActiveDocument.PrintOut Item:=wdPrintStyles
When you run the line, Word prints the exact same thing that would appear if you choose to print Styles in the Print What drop-down list of the Print dialog box.
Tip #1417 applies to Microsoft Word versions: 97 2000 2002 2003 2007
Create and Merge! Discover how to use Word's mail merge tool to create your own custom documents. WordTips: Mail Merge Magic includes all the information you need to make your merges more productive.
Word includes two powerful search engines. Do you know how to use them both? You can discover new knowledge with WordTips: Find and Replace. (more information...)
Ask a Word Question
Make a Comment
Beauty Tips
Bugs and Pests Tips
Car Tips
Cleaning Tips
College Tips
Cooking Tips
Excel2007 Tips
ExcelTips
Family Tips
Gardening Tips
Health Tips
Home Tips
Money Tips
Organizing Tips
Pet Tips
Word2007 Tips
WordTips