Microsoft KB Archive/116035

From BetaArchive Wiki

XL5: xlZoomToSelection Not a Valid Constant



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

Additional query words: magnify magnification

Keywords :
Version : 5.00
Platform : WINDOWS
Issue type :
Technology :


Last Reviewed: September 14, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.