Microsoft KB Archive/166987

= XL97: Illegal Operation Error Using ListBox Control =

Article ID: 166987

Article Last Modified on 10/22/2000

-

APPLIES TO


 * Microsoft Excel 97 Standard Edition

-



This article was previously published under Q166987



SYMPTOMS
In a chart sheet, when you resize a ListBox control or attempt to paste a ListBox control, Microsoft Excel 97 displays one of the following error messages:

Microsoft Windows 95
This program has performed an illegal operation and will be shutdown.

If you click Details, the following is displayed:

EXCEL caused a divide error in module EXCEL.EXE at

When you click Close, the program is closed.

Microsoft Windows NT 4.0
An application error has occurred and an application error log is being generated.

EXCEL.exe

Exception divide by zero

When you click OK or Cancel, the program is closed.



CAUSE
This problem occurs when you do the following:


 * You draw a ListBox control on a chart sheet. -and-


 * You size the control. -or-


 * You draw a ListBox control on a worksheet. -and-


 * You copy the ListBox, and then attempt to paste it onto a chart sheet.



STATUS
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.



MORE INFORMATION
A ListBox control is available as part of the Forms toolbar. You can draw controls on a worksheet and a chart sheet. You can resize a control by moving the border of the control or by changing the properties of the control. To change the properties, select the control and click Control on the Format menu. Click the Size tab and change the Height and Width settings.

