Excel: Using GET.WINDOW() to See if Window Is Split or Zoomed

Last reviewed: October 31, 1994
Article ID: Q45249

SUMMARY

Microsoft Excel version 2.20 has four additional undocumented arguments for the GET.WINDOW() function that deal with split windows and whether the window is maximized (zoomed). The second and third arguments below also apply to Excel version 1.50.

These four arguments are not mentioned on page 239 in the "Microsoft Excel Functions and Macros" version 2.2 manual nor are the ones that apply to Excel version 1.50 mentioned on pages 240-241 in the "Microsoft Excel Arrays, Functions, and Macros" version 1.5 manual.

The four omitted arguments are as follows:

  1. GET.WINDOW(17) returns the quadrant of the active cell. If the window is not split, this returns a "1". If the window is split in half vertically, the left quadrant is 1, the right is 2. If the window is split horizontally, the top quadrant is 1, the bottom is 3. If the cell is split horizontally and vertically, the quadrants are numbered clockwise starting with the upper-left corner.

  2. GET.WINDOW(18) returns TRUE if the window is split vertically, or FALSE if it is not split vertically. (Also works in Excel 1.50.)

  3. GET.WINDOW(19) returns TRUE if the window is split horizontally, or FALSE if it is not split horizontally. (Also works in Excel 1.50.)

  4. GET.WINDOW(20) returns TRUE if the window is maximized (zoomed), or FALSE if it is not maximized.

KBSubcategory: kbother KBSubcategory:


Additional reference words: 1.50 2.20


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: October 31, 1994
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.