Hi all,
I have several ActiveX combo-boxes on a sheet. Each one has code for the change event, so an update to the first automatically fills the next boxes with appropriate values. So far, so good. It works as intended.
But when I close the workbook a change event gets fired. By the time it is processed however, the ActiveX objects the event should act on do no longer exist. So I get a compilation error on statements like
. Because it is a compilation error, I cannot trap it with
.
I tried setting a global flag in
and various other places, but it seems the event is passed the value of that flag as it was when triggered, which is before
. By the time it actually starts processing the event my Debug.Print statement says we passed
and the flag is set. But the check in the change event (
) says not. So the event continues to the routine doing the actual work, and raises an error on the
code.
Any suggestions are welcome, this is driving me nuts.
Yours,
André
Bookmarks