Skip to content

Commit

Permalink
also set Workbook.caller() for xlfunc, closes #316
Browse files Browse the repository at this point in the history
  • Loading branch information
fzumstein committed Jan 6, 2016
1 parent ef5b3eb commit 6943fa7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions xlwings/udfs.py
Expand Up @@ -201,6 +201,7 @@ def import_udfs(script_path, xl_workbook):
f.write(tab + 'Py.SetAttr Py.Module("xlwings._xlwindows"), "xl_workbook_current", ThisWorkbook\n')
f.write(tab + "Py.Call func, args\n")
else:
f.write(tab + 'Py.SetAttr Py.Module("xlwings._xlwindows"), "xl_workbook_current", ThisWorkbook\n')
f.write(tab + "Set " + fname + " = Py.Call(func, args)\n")
marshal = xlret["marshal"]
if marshal == "auto":
Expand Down

0 comments on commit 6943fa7

Please sign in to comment.