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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Is it problem beacause of inside VBscript code.?
I don't see any Book2.htm or .htm naming code inside of it.
hmm..
I don't see any Book2.htm or .htm naming code inside of it.
hmm..
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I've resolved it. I copied script and place into new module
that it works.
Thanks for your followup
that it works.
Thanks for your followup
You're welcome.
ASKER
I've registered personal.xlsd file in C:\Users\USERNAME\AppData\
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