XL5: xlZoomToSelection Not a Valid Constant

Last reviewed: September 12, 1996
Article ID: Q116035
The information in this article applies to:
  • Microsoft Excel for Windows, version 5.0

SUMMARY

In Microsoft Excel Help, under Visual Basic Equivalents For Macro Functions And Commands, the following is listed as a constant for the Zoom property:

   ActiveWindow.Zoom = xlZoomToSelection

This constant does not exist. The correct syntax for this property is:

   ActiveWindow.Zoom = True

MORE INFORMATION

In Microsoft Excel 5.0, a window can be magnified to a specific percentage (such as 150-percent or 75-percent), or a window can be allowed to zoom automatically based on the current selection.

To zoom manually, use the Zoom Control box on the standard toolbar or choose Zoom from the View menu.

To find the Visual Basic Equivalents For Macro Functions And Commands Help topic, choose Contents from the Help menu, and then choose Reference Information. Under General Reference, choose Microsoft Excel Macro Function Contents.

REFERENCES

For more information about the Zoom property, choose the Search button in Help and type:

   Zoom


KBCategory:
KBSubcategory:

Additional reference words: 5.00 magnify magnification



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: September 12, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.