Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closing Excel clicking on the x in the upper right corner and then cancel it. #78

Open
ShieldTrade opened this issue Nov 21, 2023 · 3 comments

Comments

@ShieldTrade
Copy link

ShieldTrade commented Nov 21, 2023

Hi @cunnane, I regret I am not able to propose a solution. I am not skilled enough. I am a monkey debugger, sorry about it

Xloil version 0.17.14
Python modules is loaded on start up using LoadModules in the config TOML file.

Step to reproduce the issue:
Close excel clicking on the X in the upper right corner.
Click cancel or the X on the msg box.

Issue:
All Xloil functions return #VALUE
Full recalculate does not change anything.
If I click on the cell and then I press enter all Xloil functions return #NAME?

@cunnane
Copy link
Owner

cunnane commented Nov 24, 2023

This may not be possible to work around - by the time you click 'Cancel', Excel has already unloaded all addins, hence all the functions registered by the addins have been de-registered. I'll have a little dig into possibilities....

@keithalewis
Copy link

@ShieldTrade This is a known "feature" of Excel. If you close a workbook then click Cancel all the add-ins will be unregistered.
The solution is "Don't do that." :-)

@ShieldTrade
Copy link
Author

I also noticed that if you try to close excel while xloil is loading excel will crash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants