XL: Change Event for ActiveX Control Runs Unexpectedly (169885)
The information in this article applies to:
- Microsoft Excel 2000
- Microsoft Excel 2002
- Microsoft Excel 97 for Windows
This article was previously published under Q169885 SYMPTOMS
A change event macro that is assigned to an ActiveX control on a worksheet
runs when the worksheet is recalculated instead of running when you change
the control value.
CAUSE
This problem occurs when you assign the ListFillRange property of the control to either of the following:
- A defined name that refers to a formula or cell that contains a volatile function.
-or- - A cell that contains a formula that contains a volatile function.
NOTE: A volatile function must be recalculated whenever calculation occurs in any cells on the worksheet. A nonvolatile function is recalculated only when the input variables change.
RESOLUTION
To prevent the change event from running unexpectedly, do not assign its
ListFillRange property to a defined name or to a cell that contains a function that is calculated whenever the worksheet changes (a volatile
function).
REFERENCESFor more information about ActiveX controls, click Microsoft Excel Help on the
Help menu, type ActiveX in the Office Assistant or
the Answer Wizard, and then click Search to view the topics
returned.
Modification Type: | Major | Last Reviewed: | 5/13/2003 |
---|
Keywords: | kbprb kbProgramming KB169885 |
---|
|