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

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

Closed
EranBenHorin opened this Issue Dec 18, 2015 · 8 comments

Comments

Projects
None yet
2 participants
@EranBenHorin

EranBenHorin commented Dec 18, 2015

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.

@fzumstein

This comment has been minimized.

Show comment
Hide comment
@fzumstein

fzumstein Dec 18, 2015

Member

OK so can you please download and unzip the udf sample from the homepage, and check if it runs OK (change some numbers or click the button) and then click on the import button again to see if you get the same error?

Alternatively, click Alt - F8 and see if the ImportPythonUDFs appears in the list of macros, if yes, run it.

Member

fzumstein commented Dec 18, 2015

OK so can you please download and unzip the udf sample from the homepage, and check if it runs OK (change some numbers or click the button) and then click on the import button again to see if you get the same error?

Alternatively, click Alt - F8 and see if the ImportPythonUDFs appears in the list of macros, if yes, run it.

@fzumstein fzumstein added the bug label Dec 18, 2015

@EranBenHorin

This comment has been minimized.

Show comment
Hide comment
@EranBenHorin

EranBenHorin Dec 18, 2015

It worked. Interesting..

EranBenHorin commented Dec 18, 2015

It worked. Interesting..

@fzumstein

This comment has been minimized.

Show comment
Hide comment
@fzumstein

fzumstein Dec 18, 2015

Member

So it must have probably been an issue with the xlwings VBA module that you were using. Need to check the template if something has gone wrong there.

Member

fzumstein commented Dec 18, 2015

So it must have probably been an issue with the xlwings VBA module that you were using. Need to check the template if something has gone wrong there.

@fzumstein

This comment has been minimized.

Show comment
Hide comment
@fzumstein

fzumstein Dec 19, 2015

Member

Seems all good. I am closing this issue as I bet there was something wrong with your xlwings VBA module.

Member

fzumstein commented Dec 19, 2015

Seems all good. I am closing this issue as I bet there was something wrong with your xlwings VBA module.

@fzumstein fzumstein closed this Dec 19, 2015

@fzumstein

This comment has been minimized.

Show comment
Hide comment
@fzumstein

fzumstein Dec 21, 2015

Member

In the meantime I could duplicate the issue...but haven't found the real reason yet.

Member

fzumstein commented Dec 21, 2015

In the meantime I could duplicate the issue...but haven't found the real reason yet.

@fzumstein fzumstein reopened this Dec 21, 2015

@EranBenHorin

This comment has been minimized.

Show comment
Hide comment
@EranBenHorin

EranBenHorin Dec 21, 2015

you mean replicate / reproduce the issue?

EranBenHorin commented Dec 21, 2015

you mean replicate / reproduce the issue?

@fzumstein

This comment has been minimized.

Show comment
Hide comment
@fzumstein

fzumstein Dec 21, 2015

Member

yes

On Mon, Dec 21, 2015 at 3:40 PM, EranBenHorin notifications@github.com
wrote:

you mean replicate / reproduce the issue?


Reply to this email directly or view it on GitHub
#331 (comment)
.

Member

fzumstein commented Dec 21, 2015

yes

On Mon, Dec 21, 2015 at 3:40 PM, EranBenHorin notifications@github.com
wrote:

you mean replicate / reproduce the issue?


Reply to this email directly or view it on GitHub
#331 (comment)
.

@fzumstein

This comment has been minimized.

Show comment
Hide comment
@fzumstein

fzumstein Dec 21, 2015

Member

This was caused by blanks/dashes in the filename, see also answer on StackOverflow. It is now fixed and will be available with the next release.

Member

fzumstein commented Dec 21, 2015

This was caused by blanks/dashes in the filename, see also answer on StackOverflow. It is now fixed and will be available with the next release.

@fzumstein fzumstein closed this Dec 21, 2015

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