
Tips.Net > WordTips Home > Macros > WordBasic Examples > Determining How Many Windows are Open with WordBasic
Summary: For your WordBasic macro to work properly, you may need to determine how many document windows are open. (This tip works with Microsoft Word 6, and Word 95.)
It is sometimes helpful for your macro to know how many document windows are open at any given time. You can determine the number of open windows by using the following WordBasic code:
X = CountWindows
After executing the line, X is equal to the number of open windows.
Tip #734 applies to Microsoft Word versions: 6 95
Tremendous Table Tips! We often take tables for granted, but Word includes some very powerful ways you can present your tabular data. Discover how to make your tables better, easier to understand, and more effective.
Check out WordTips: Terrific Tables today!
Do you want a decade of WordTips information at your fingertips? You can find what you need with the WordTips Ten-Year Library. (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