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

Is it possible to give custom functions access to the Book object model? #119

Open
fzumstein opened this issue Sep 9, 2024 · 0 comments

Comments

@fzumstein
Copy link
Member

fzumstein commented Sep 9, 2024

In classic UDFs, you can call do something like

import xlwings as xw

@xw.func
def get_fullname():
    book = xw.Book.caller()
    return book.fullname

but this may not easily translate to custom functions. Maybe custom functions with side-effects (see hello_with_script() sample) might be a workaround though.

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

1 participant