Link to home
Start Free TrialLog in
Avatar of ndoorsinteractive
ndoorsinteractive

asked on

Cannot run the macro "filename1". The macro may not be available in this workbook or all macros may be disabled.

I've working on Macro Function (by VBA) which is in Excel.

When I create macro function and register function directly on toolbar(ribbon?),
the macro doesn't have any problem to run.

but the problem is happing,
when i close file and excel completely, and i open new file with other name and try to run the macro by pressing macro button, it keeps showing error below.

Cannot run the macro "filename1". The macro may not be available in this workbook or all macros may be disabled.

i've enabled macro setting as "allow all macro enabled"..

what am i supposed to change or add it.?

Also, I need the macro button available for 1 or 2 users in Active directory as well.

Thanks in advance
SOLUTION
Avatar of Argenti
Argenti
Flag of France image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ndoorsinteractive
ndoorsinteractive

ASKER

Thanks for your comments.
I've registered personal.xlsd file in C:\Users\USERNAME\AppData\Roaming\Microsoft\Excel\XLSTART

Now, it starts automatically whenver excel opens.
but, I still get this error (attached file)
i'm not what problem is. is it problem on VBscript..?

Thanks
screen-capture.png
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Is it problem beacause of inside VBscript code.?
I don't see any Book2.htm or .htm naming code inside of it.
hmm..
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I've resolved it. I copied script and place into new module
that it works.

Thanks for your followup
You're welcome.