before close event
The before close event fires prior to the dialog that allows the user to
cancel. So it doesn not containg the user repsonse. Rather it allows you to
cancel the closing of the addin. If you cancel the closing and the user
choose to continue with exiting XL it may cause an issue. It may not but it
is something to watch out for. What are you using the before close event
for???
--
HTH...
Jim Thomlinson
"mark" wrote:
Sounds like we're doing some slightly different things.
My Add-In doesn't put in any new menus, just some subroutines and functions
for database access to an Oracle database.
There is a connection to the database in there, which we want to have
available when a given workbook is open, and not available when that given
workbook is not open.
You wrote:
"You are trying to close XL but you are saying do not close the addin."
It's actually sort of the opposite of that. Whether or not I'm closing
Excel, isn't the question... just the workbook. If the workbook closes,
uninstall the Add-In. If the workbook opens, install the Add-In.... is what
is wanted (partially by management).
|