Skip to content

basic examples only work with a modification of xlpython.xlam #12

@alex-ifx

Description

@alex-ifx

Hi!

I have just started with xlpython today and I was unable to run this example:

from xlpython import *

@xlfunc
def DoubleSum(x, y):
    '''Returns twice the sum of the two arguments'''
    return 2 * (x + y)

Excel was complaining about the following line:

Sub XLPMacroOptions2010(macroName As String, desc, argdescs() As String)
    Application.MacroOptions macroName, Description:=desc, ArgumentDescriptions:=argdescs
End Sub

I have changed it to:

Sub XLPMacroOptions2010(macroName As String, desc, argdescs() As String)
    Application.MacroOptions macroName, Description:=desc
End Sub

... and now it works.

What is causing this and how can I avoid this situation?

I use Windows 7 and Excel 2007.

Thank you!

Best regards,
Alex

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions