Menu

default values in udf

Ark Wu
2015-11-23
2015-11-24
  • Ark Wu

    Ark Wu - 2015-11-23

    all,

    I just started trying ExcelPython, I found the concept is fantastic and it works quite well for me so far.
    Just wonder if ExcelPython currently supports the default value in function (Optional Parameters in vba).
    the example would be as follow:
    in py file
    @xlfunc
    def test(a="Hello"):
    return a
    in excel
    the formula could be either =test() or =test("aaa").

    thanks for advance.

    Regards
    Ark

     
  • Eric Reynolds

    Eric Reynolds - 2015-11-24

    Hello Ark,

    This feature is not currently in ExcelPython but I don't believe it would be difficult to implement. Currently ExcelPython is being integrated into xlwings, so we will probably add this feature at a later stage.

    Thanks for the idea, kind regards,

    Eric

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.