Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Put code in the workbook (workbook_open event) that assignes the appropriate
macro to the onaction property of the workbook. If you don't include any path, it should then add the current path for your workbook or you can use the Thisworkbook.path to assign it. -- Regards, Tom Ogilvy "Bill Cockerill" wrote in message om... Dear Group, I have built a workbook with a custom toolbar. The buttons on the toolbar are assigned to macros in the workbook. However, when I copy the workbook to a CD and run it from there, it tries to run the macros from the original workbook, not the CD copy. It then tells me I can't have two workbooks of the same name open! How can I assign macros to buttons that work from that workbook, no matter where it is copied to? Thanks, Bill |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Assigned macros change location | Excel Discussion (Misc queries) | |||
copy macro assigned buttons in an array | Excel Worksheet Functions | |||
Buttons assigned to a macro | Excel Programming | |||
Problem with macros assigned to toolbar buttons | Excel Programming |