by Allen Wyatt
(last updated March 7, 2015)
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:
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.
WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (1417) applies to Microsoft Word 97, 2000, 2002, and 2003.
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!
When you are printing a document, it is not unusual to see messages (dialog boxes) periodically. When you want the ...Discover More
Need to have your macro insert a bit of text into your document? It's easy to do using the TypeText method.Discover More
Want to configure Word to do just what you want it to? You can even go so far as to change the actual way in which Word ...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 menu interface (Word 97, Word 2000, Word 2002, or Word 2003)? This site is for you! If you use a later version of Word, visit our WordTips site focusing on the ribbon interface.