![]() |
Position of MyBar
I have a custom toolbar that opens with a specific WB. I want to
position it at the end of the "Formatting toolbar" on the 3rd Row, not in its own seperate row. How do I accomplish this? TIA Greg |
Position of MyBar
Maybe something like:
Option Explicit Sub testme() Dim cb As CommandBar Dim fCB As CommandBar Set fCB = Application.CommandBars("Formatting") On Error Resume Next Application.CommandBars("Mybar").Delete On Error GoTo 0 Set cb = Application.CommandBars.Add(Name:="mybar", temporary:=True) With cb .Visible = True .Position = msoBarTop .Visible = True .Left = fCB.Width + fCB.Left .RowIndex = fCB.RowIndex End With End Sub GregR wrote: I have a custom toolbar that opens with a specific WB. I want to position it at the end of the "Formatting toolbar" on the 3rd Row, not in its own seperate row. How do I accomplish this? TIA Greg -- Dave Peterson |
Position of MyBar
Dave, perfect solution as always. Thanks
Greg |
Position of MyBar
Dave, perfect solution as always. Thanks
Greg |
All times are GMT +1. The time now is 06:56 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com