Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 246
Default 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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default 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
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 246
Default Position of MyBar

Dave, perfect solution as always. Thanks

Greg

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 246
Default Position of MyBar

Dave, perfect solution as always. Thanks

Greg

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
Look up a value which position changes. David_in_AUS Excel Discussion (Misc queries) 1 June 13th 06 09:01 AM
How can I fix the position of a row [email protected] Excel Discussion (Misc queries) 3 June 8th 06 10:27 PM
.position chazman Charts and Charting in Excel 4 February 28th 05 02:26 AM
Tab Position Robert[_16_] Excel Programming 3 January 6th 05 09:52 PM
MyBar doesn't run automatically Daniel Busquet Excel Programming 0 April 22nd 04 05:37 PM


All times are GMT +1. The time now is 04:00 AM.

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

About Us

"It's about Microsoft Excel"