View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
shg[_54_] shg[_54_] is offline
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