Skip to content

Run-time error '1004': Cannot run the macro 'xlwings-test.xlsm!ImportPythonUDFs'. The macro may not be available in this workbook or all macros may be disabled. #331

@EranBenHorin

Description

@EranBenHorin

Hi,
I get this error when I do the following:

  1. xlwings template open
  2. Save as x.xlsm if the python file is x.py - whilst making sure the two files are in the same directory.

I also enabled Trust access to the VBA project object model as I should have.

Excel version: 15.0.4779.1001 64-bit
xlwings version 0.6.2
Win 8.1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions