Microsoft KB Archive/209709

From BetaArchive Wiki
Knowledge Base


Windows.Count returns the value 1 in Word

Article ID: 209709

Article Last Modified on 1/12/2007



APPLIES TO

  • Microsoft Office Word 2007
  • Microsoft Office Word 2003
  • Microsoft Word 2002 Standard Edition
  • Microsoft Word 2000 Standard Edition



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 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 List of programming resources for Visual Basic for Applications


226118 List of resources that are available to help you learn Visual Basic for Applications programming


163435 Programming resources for Visual Basic for Applications



Additional query words: vba wd2002 wd2003 wd2000 wd 2007

Keywords: kbinfo kbprint kbvba kbnofix kbprb KB209709