XL5: xlZoomToSelection Not a Valid Constant

ID: Q116035

5.00 WINDOWS DocErr

The information in this article applies to:

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

Version           : 5.00
Platform          : WINDOWS

Last Reviewed: September 14, 1996