![]() |
Can you launch Macros from a customized Toolbar?
Can you launch Macros from a customized Toolbar?
|
Can you launch Macros from a customized Toolbar?
Sure; set the OnAction property of the control, e.g., Code: -------------------- Set cControl = Application.CommandBars("Worksheet Menu bar").Controls.Add With cControl .Caption = "&Copy Rng" .Style = msoButtonCaption .OnAction = "ShowRangeToClipboardForm" End With -------------------- -- shg ------------------------------------------------------------------------ shg's Profile: http://www.thecodecage.com/forumz/member.php?userid=13 View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=37949 |
Can you launch Macros from a customized Toolbar?
For additions to the worksheet menu bar, I really like the way John Walkenbach
does it in his menumaker workbook: http://j-walk.com/ss/excel/tips/tip53.htm Here's how I do it when I want a toolbar: http://www.contextures.com/xlToolbar02.html (from Debra Dalgleish's site) In xl2007, those toolbars and menu modifications will show up under the addins. And if you use xl2007: If you want to learn about modifying the ribbon, you can start at Ron de Bruin's site: http://www.rondebruin.nl/ribbon.htm http://www.rondebruin.nl/qat.htm -- For macros for all workbooks (saved as an addin) or http://www.rondebruin.nl/2007addin.htm Fan924 wrote: Can you launch Macros from a customized Toolbar? -- Dave Peterson |
Can you launch Macros from a customized Toolbar?
Thanks Dave.
|
Can you launch Macros from a customized Toolbar?
Thanks shg & Dave.
|
All times are GMT +1. The time now is 09:42 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com