WD2000: Windows.Count Not Working As Expected with Print Preview

ID: Q209709


The information in this article applies to:


SYMPTOMS

When you use the Visual Basic for Applications Windows.Count command while the Print Preview window is displayed, the value returned is 1. In Microsoft Office 97, the count returned is 2.


CAUSE

This behavior is by design. In Word 97, the Print Preview window is used with Multiple Document Interface (MDI). In Word 2000, Single Document Interface (SDI) replaces the use of MDI.


REFERENCES

For more information about getting help with Visual Basic for Applications, please see the following article in the Microsoft Knowledge Base:

Q226118 OFF2000: Programming Resources for Visual Basic for Applications

Additional query words: vba


Keywords          : kbdta kbwordvba wd2000 
Version           : WINDOWS:2000
Platform          : WINDOWS 
Issue type        : kbprb 

Last Reviewed: May 13, 1999