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

Develop and Register Custom Functions #1327

Open
1 task done
mathlang opened this issue Dec 18, 2019 · 1 comment
Open
1 task done

Develop and Register Custom Functions #1327

mathlang opened this issue Dec 18, 2019 · 1 comment

Comments

@mathlang
Copy link
Contributor

Read and complete the full issue template

Do you want to request a feature or report a bug?

  • [] Bug
  • Feature

If you are logging a possible bug or feature request, please test with the latest development build first.

Version of ClosedXML

v0.94.2

What is the current behavior?

If an Excel workbook uses custom VBA functions, ClosedXML will fail to parse the formulas because it cannot interpret the custom function

What is the expected behavior or new feature?

I was wondering if you guys ever considered supporting custom functions. At very high level, it could be achieved by making certain classes public or creating new interfaces (CalcEngine, CalcEngineFunction, Expression, etc), with added validations and logic.

I want to discuss this before spending time developing it.

@peetn
Copy link

peetn commented Nov 2, 2020

Hello,
I found this topic and I'm also interested.
I have a worksheet with a custom VBA function. Cells that use that custom function anywhere in their formula tree (this cell or a referenced cell or one of their references...) indeed cannot be calculated.
What is the suggested approach here.
Since I see that sometimes the CachedValue (or ValueCached) is not the same as if you would open the file in Excel.
Saving the file in Excel seems to update the CachedValue in a good way. But I don't know why it is not always guaranteed to be correct.
So currently I can't rely on the CachedValue in those cases.
Also there is no way to know if the CachedValue might be incorrect...
Any suggestion is welcome.
Thanks

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

2 participants