Windows.Count returns the value 1 in Word 2003, Word 2002, and Word 2000 (209709)



The information in this article applies to:

  • Microsoft Office Word 2003
  • Microsoft Word 2002
  • Microsoft Word 2000

This article was previously published under Q209709

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 and later, Single Document Interface (SDI) replaces the use of MDI.

REFERENCES

For additional information about getting help with Visual Basic for Applications, click the following article numbers to view the articles in the Microsoft Knowledge Base:

305326 OFFXP: Programming resources for Visual Basic for Applications

226118 OFF2000: Programming Resources for Visual Basic for Applications

163435 VBA: Programming resources for Visual Basic for Applications



For additional information about getting help with Visual Basic for Applications, click the following article numbers to view the articles in the Microsoft Knowledge Base:

305326 OFFXP: Programming resources for Visual Basic for Applications

226118 OFF2000: Programming Resources for Visual Basic for Applications

163435 VBA: Programming resources for Visual Basic for Applications


Modification Type:MajorLast Reviewed:3/23/2006
Keywords:kbinfo kbprint KbVBA kbnofix kbprb KB209709 kbAudDeveloper