Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
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? |
#2
![]() |
|||
|
|||
![]()
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 "-" wrote in message om... 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? |
#3
![]() |
|||
|
|||
![]() |
#5
![]() |
|||
|
|||
![]()
In article ,
says... 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 "Emory Richter" wrote in message om... In article , says... 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 "-" wrote in message om... 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? 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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Cannot copy from one workbook to another | Excel Discussion (Misc queries) | |||
Copy sheet to new workbook | Excel Discussion (Misc queries) | |||
What's the simplest way to copy data from another workbook | Excel Worksheet Functions | |||
copy COLUMN from 1 worksheet to another (in a different workbook) | Excel Discussion (Misc queries) | |||
copy worksheet from closed workbook to active workbook using vba | Excel Worksheet Functions |