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
Access vba or caller in converter for UDFs #1541
Comments
If you could add an example, that would certainly help. Converters are only good for manipulating the values, but you might be able to pull something off by writing an Accessor. Since they are currently not documented, you could take a look at one here: |
I will provide an example, but meanwhile I found a way to achieve it
This works in converters, even if they don't have access to the |
I'd rather use |
here is an example https://github.com/audetto/xlwings-demo/blob/master/main.py in particular, https://github.com/audetto/xlwings-demo/blob/master/main.py#L16 With this technique, objects are never deleted. The idea is almost the same as Line 411 in f72bc83
But with the suggestion above, once can bypass the whole |
I am closing this as I think it's a dupe of #555. |
I would like to know if it is possible to access
vba
orcaller
inside a converter.The use case is a function returning an object which is saved into a python dictionary and the key returned to Excel.
I would like to use the cell name to avoid constantly creating new objects.
I could do this inside the function, but I like the idea of the converter so that I keep this Excel logic separated. And when calling it from python, it does not alter the behaviour.
Moreover I could use a decorator around the function, but that would alter the normal python behaviour.
I really like the idea of the converters.
Any suggestion?
The text was updated successfully, but these errors were encountered: