Article ID: 209709 - Last Review: January 12, 2007 - Revision: 5.0

Windows.Count returns the value 1 in Word

This article was previously published under Q209709
Expand all | Collapse all

SYMPTOMS

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

CAUSE

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

REFERENCES

For more information about how to get help with Visual Basic for Applications, click the following article numbers to view the articles in the Microsoft Knowledge Base:
305326  (http://support.microsoft.com/kb/305326/ ) List of programming resources for Visual Basic for Applications
226118  (http://support.microsoft.com/kb/226118/ ) List of resources that are available to help you learn Visual Basic for Applications programming
163435  (http://support.microsoft.com/kb/163435/ ) Programming resources for Visual Basic for Applications

APPLIES TO
  • Microsoft Office Word 2007
  • Microsoft Office Word 2003
  • Microsoft Word 2002 Standard Edition
  • Microsoft Word 2000 Standard Edition
Keywords: 
kbinfo kbprint kbvba kbnofix kbprb KB209709
 

Article Translations

 

Related Support Centers