Microsoft KB Archive/86486

{|
 * width="100%"|

Excel: Picture Object in Dialog box Affected by Zoom

 * }

-

The information in this article applies to:


 * Microsoft Excel for Windows, version 4.0
 * Microsoft Excel for the Macintosh, version 4.0

-

SYMPTOMS
In Microsoft Excel version 4.0, when you resize the picture object used in a custom dialog box, either by zooming the macro sheet or by direct manipulation of the object, the picture not fit in the dialog box.

CAUSE
This problem will occur if you fail to include the width and height dimensions of the picture in the dialog box definition table.

WORKAROUND
To work around this problem, specify the width and height dimensions of the dialog box in the dialog box definition table.

MORE INFORMATION
Microsoft Excel 4.0 allows you to use picture objects on buttons or icons in user-defined dialog boxes by specifying the object identifier in the text column of the dialog box definition table on the macro sheet. However, if you leave the width and height columns in the definition table blank the size of the picture in the dialog box is determined by the size of the object on the macro sheet. As a result, zooming the sheet or resizing the picture object will change the size of the picture displayed in the dialog box.