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

Can not call a function which has a default parameter #363

Closed
cincin77 opened this issue Feb 9, 2016 · 3 comments
Closed

Can not call a function which has a default parameter #363

cincin77 opened this issue Feb 9, 2016 · 3 comments
Milestone

Comments

@cincin77
Copy link

cincin77 commented Feb 9, 2016

Hello,

I have a function whose last parameter is optional as it has a default value. It works when that parameter isnt given in the python console but when it is used in Excel through xlwings, it doesnt return. (#VALUE!) Do i miss something? Is there a way to make it work?

thanks.

@fzumstein
Copy link
Member

You're right - that's currently not supported yet.

@DougAJ4
Copy link

DougAJ4 commented Feb 16, 2016

In this situation I add the argument as optional with a default value in the VBA code, e.g.:

Function MyFunc(... , Optional optionalarg1 as Long = 0, Optional optionalarg2 as Double = 1.0)

@fzumstein
Copy link
Member

Closed by PR #389

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

No branches or pull requests

3 participants