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

Comments

Projects
None yet
3 participants
@cincin77

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

This comment has been minimized.

Member

fzumstein commented Feb 10, 2016

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

@DougAJ4

This comment has been minimized.

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 fzumstein added this to the v0.7.1 milestone Mar 8, 2016

@fzumstein

This comment has been minimized.

Member

fzumstein commented Mar 9, 2016

Closed by PR #389

@fzumstein fzumstein closed this Mar 9, 2016

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