Excel: Picture Object in Dialog box Affected by Zoom

ID: Q86486


The information in this article applies to:


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.


REFERENCES

"User's Guide 2," version 4.0, pages 263-272, 279

Additional query words:


Keywords          : 
Version           : 
Platform          : 
Issue type        : 

Last Reviewed: March 25, 1999