Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Add Button to End of Menu Bar
I am adding some button to the end of a menu bar and trying to create a group
at the same time I am using the following function to try and begin the group bit it wants to begin the group 1 button early Set myMenuBar = application.CommandBars("essOption") Set lastMenu = myMenuBar.Controls(myMenuBar.Controls.Count) lastMenu.BeginGroup = True |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Add Button to End of Menu Bar
On Tue, 10 Feb 2009 10:43:01 -0800, Nigel wrote:
I am adding some button to the end of a menu bar and trying to create a group at the same time I am using the following function to try and begin the group bit it wants to begin the group 1 button early Set myMenuBar = application.CommandBars("essOption") Set lastMenu = myMenuBar.Controls(myMenuBar.Controls.Count) lastMenu.BeginGroup = True Nigel: Add your new button first, then set the new button's BeginGroup property to True. Set lastMenu = myMenuBar.Controls.Add(msoControlButton,,,myMenuBa r.Controls.Count + 1) lastMenu.BeginGroup = True -- Dick Kusleika Microsoft MVP-Excel http://www.dailydoseofexcel.com |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Undo button in the context menu (right click menu) | Excel Programming | |||
add button to standard menu bar | Excel Programming | |||
Create floating button based on button click in menu | Excel Programming | |||
Seagate Button on Menu | Excel Discussion (Misc queries) | |||
What is the "TextBridge" menu button used for? | Excel Worksheet Functions |