Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Custom Toolbar Macros
Maybe someone can lend a hand...
I looking for a method of setting a macro to a custom toolbar button via VBA. My problem is that the custom toolbar isn't workbook specific and everytime a new file is opened, the toolbar button looks to execute the macro from the last file. Thanks |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Custom Toolbar Macros
object.OnAction = "MyWorkbook.xls!MyMacro"
where object would be a reference to your toolbar button and MyWorkbook.xls is open. If it will be closed, put in the path as well. -- Regards, Tom Ogilvy Merlzie wrote in message ... Maybe someone can lend a hand... I looking for a method of setting a macro to a custom toolbar button via VBA. My problem is that the custom toolbar isn't workbook specific and everytime a new file is opened, the toolbar button looks to execute the macro from the last file. Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Custom toolbar for template - macros not working | Excel Discussion (Misc queries) | |||
Have problem sending spreadsheet email and losing custom toolbar and macros | Excel Discussion (Misc queries) | |||
toolbar macros | Excel Discussion (Misc queries) | |||
Custom toolbar and macros | Excel Discussion (Misc queries) | |||
saving toolbar buttons on custom toolbar | Excel Programming |