Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 238
Default Can you launch Macros from a customized Toolbar?

Can you launch Macros from a customized Toolbar?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default 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
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 238
Default Can you launch Macros from a customized Toolbar?

Thanks Dave.
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 238
Default Can you launch Macros from a customized Toolbar?

Thanks shg & Dave.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Icons on Customized Toolbar Tami Excel Worksheet Functions 2 December 10th 09 09:14 PM
customized toolbar issue Tami Excel Worksheet Functions 1 July 28th 09 02:40 AM
how Do I save a customized Toolbar filo666 Excel Programming 3 June 26th 07 03:36 PM
customized toolbar buttons macros to a group of users TBSpieth Excel Programming 1 October 30th 06 06:53 PM
How do you keep your toolbar customized the way you set it up? alitanna New Users to Excel 2 May 19th 06 08:20 AM


All times are GMT +1. The time now is 08:57 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"