How to copy a workbook so the buttons run the macros?

?

-

a.xcl has lots of macros and lots of buttons.
If I copy a.xcl as b.xcl
and move a.xcl to a different folder
and run eg. macro1 from the button in b.xcl
I get an error message:
a.xcl/macro1 not found.

How can I copy a workbook
so the buttons will run the macros in that workbook
rather than looking for the macros in the original workbook?
 
O

Otto Moehrbach

You obviously know how to assign a macro to a button. Just do that again
and select the macro that is in that workbook. HTH Otto
 
E

Emory Richter

You obviously know how to assign a macro to a button. Just do that again
and select the macro that is in that workbook. HTH Otto

Otto
The problem is I have hundreds of macros in the workbook
and it is copied each month
to replace the contents with new inventory info.
Reassigning the macros to the buttons is what I am trying to avoid.
Emory
 
O

Otto Moehrbach

Emory
What I would do in that case is remove the macros altogether from
that(those) workbooks and instead put them all in your Personal.xls
workbook. Then setup one file with all the buttons and each macro is
assigned to its respective button. That way, when you copy the file, the
macro assignments don't have to be changed. HTH Otto
 
E

Emory Richter

Emory
What I would do in that case is remove the macros altogether from
that(those) workbooks and instead put them all in your Personal.xls
workbook. Then setup one file with all the buttons and each macro is
assigned to its respective button. That way, when you copy the file, the
macro assignments don't have to be changed. HTH Otto

Otto, thanks for your thoughts.
This is a good workable method.
Emory
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top