A
Arne
I have an add-in whose workbook_beforeclose event closes a toolbar that is
attached to the add-in. When a user closes Excel, it appears that the event
is closed as one of the first, and the toolbar is deleted. However, if the
user has made changes to other workbooks, he is asked whether he wants to
save them and upon canceling this operation, Excel remains active as does the
add-in. The toolbar is gone and cannot be made visible again as it has been
deleted. The only way is to close and restart excel. When Excel is really
closed after the aborted first time, an error occurs, because the
workbook_beforeclose event now tries to delete an already deleted toolbar. Is
there a way to solve this problem?
Thanks in advance,
attached to the add-in. When a user closes Excel, it appears that the event
is closed as one of the first, and the toolbar is deleted. However, if the
user has made changes to other workbooks, he is asked whether he wants to
save them and upon canceling this operation, Excel remains active as does the
add-in. The toolbar is gone and cannot be made visible again as it has been
deleted. The only way is to close and restart excel. When Excel is really
closed after the aborted first time, an error occurs, because the
workbook_beforeclose event now tries to delete an already deleted toolbar. Is
there a way to solve this problem?
Thanks in advance,