
Tips.Net > WordTips Home > Printing > Printing All Open Documents with WordBasic
Summary: Got a bunch of open documents? Want to print them all? Here's a handy WordBasic macro that will do the trick. (This tip works with Microsoft Word 6, and Word 95.)
Periodically you may be working with multiple documents on the screen at the same time, and you want to print them all. This can be cumbersome, at best, but manually switching between documents and then choosing to print each one. The following WordBasic macro allows you to print all open documents, and then returns you to the document you were viewing when you ran the macro.
Sub MAIN ' Note the current window name CurWin$ = WindowName$() ' Step through the open document windows For J = 1 To CountWindows() FilePrint NextWindow Next J ' Go back to original window Activate CurWin$ End Sub
Tip #400 applies to Microsoft Word versions: 6 95
More Power! Expand your skills and make Word really sing! It's all possible with macros. The best resource anywhere for macros is WordTips: The Macros. Check it out today!
Add power to your purpose with Word. A comprehensive 480+ page e-book explains everything you need to know about macros. (more information...)
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
Pet Tips
Word2007 Tips
WordTips