![]() |
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 |
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 |
All times are GMT +1. The time now is 08:50 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com