Positioning Custom CommandBars

R

ROCKIN' CHER

This post may make me sound smarter than I am, so go slow boys.

How can I get two customized toolbars to share the same row (or perhaps any
two toolbars)? For instance, Add-In_#1 loads CB1:

CommandBars("CB1").Position = msoBarTop

And CB1 rightfully takes the top position. But when Add-In_#2 loads CB2:

CommandBars("CB2").Position = msoBarTop

CB2 snags the Top position, but it's the "top position that's empty,"
thereby leaving little CB1 all alone with huge gaps on either side of him. I
want them to get along and share one row. They're not big enough that they'd
even suffer any buttons being hid if they shared.

What I'd like is this:
CommandBars("CB1").Position = msoBarTop_RightSide_And_ShareWithYourBrother
CommandBars("CB2").Position = msoBarTop_LeftSide_And_MakeHimLetYouIn

Same goes for anywhere ... .Position = msoBarRight_TopSpot
.Position = msoBarRight_BottomSpot

Thanks.
PS - After re-reading my post, I'm certain there'll be no confusion as to
whether or not it makes me sound smarter than I am.
 
S

Suzanne S. Barnhill

You have posted your question not only in an end user NG but in the most
heavily trafficked end user NG. For that reason, it is unlikely to be seen
by the developers who can best answer your question. Post it instead in one
of the word.vba NGs.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top