jvit1964
03-27-2006, 03:02 AM
hi to everybody
in a worbook i have a workbook_open macro that creates a custom command bar with a few menuitems that refer to specific macros saved inside the workbook
and i have a workbook_close macro that deletes the custom command bar as well
ive assigned each macro to each specific command using the .onaction event
it happens that if i save this workbook with a different name, all menuitems still refer to the original file, tryin to open it.
ive tried with the application.thisworkbook and the application.activeworkbook parameters tryin to give the .onaction parameter the name of the file from which run all macros
is there a any solution, but store all macros in a separate file on the server?
thanx for any kind suggestion
vit
in a worbook i have a workbook_open macro that creates a custom command bar with a few menuitems that refer to specific macros saved inside the workbook
and i have a workbook_close macro that deletes the custom command bar as well
ive assigned each macro to each specific command using the .onaction event
it happens that if i save this workbook with a different name, all menuitems still refer to the original file, tryin to open it.
ive tried with the application.thisworkbook and the application.activeworkbook parameters tryin to give the .onaction parameter the name of the file from which run all macros
is there a any solution, but store all macros in a separate file on the server?
thanx for any kind suggestion
vit