Microsoft KB Archive/116035

{|
 * width="100%"|

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.