The information in this article applies to:
SYMPTOMSIn Microsoft Excel versions 4.0 and 4.0a, if you turn on the macro recorder, and you use the tools on the Drawing toolbar to draw an object such as a line or polygon, when you run the macro, the size and position of the drawing depends on the zoom factor of the active sheet. CAUSE
The CREATE.OBJECT() macro function has the following arguments
(coordinates) that describe how to draw an object: ref1, x_offset1,
y_offset1, ref2, x_offset2, y_offset2. WORKAROUNDTo work around this behavior when you use a macro to create a drawing object on a worksheet, make sure the worksheet has the same magnification factor when you run the macro as when you created the macro. You can use the ZOOM() function in your macro before you create the object to make sure that the worksheet is at the desired magnification factor. For example, the following command restores the active worksheet to 100-percent magnification:
STATUSThis problem has been corrected in Microsoft Excel version 5.0. In Microsoft Excel version 5.0, the size of an object created on a worksheet using a macro is independent of the zoom factor of the worksheet. MORE INFORMATIONFor more information about using a macro to create an object on a zoomed worksheet, query on the following words in the Microsoft Knowledge Base: zoom and position and macro and recorded Additional query words: 4.00a 5.00 different relative absolute
Keywords : |
Last Reviewed: September 15, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |