Solved

VBA Excell..how do I force a toolbar to dock itself

Posted on 2000-03-22
8
529 Views
Last Modified: 2006-11-17
I am modifying the "Standard " toolbar for Excel to add custom macro buttons.  If it is not visible, I want to make it visible,  which I can  do, and dock it at the top,  which I can't find a property for.  Is it posible to forcs it to dock?
0
Comment
Question by:quantz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
  • 2
8 Comments
 
LVL 1

Expert Comment

by:pclement
ID: 2645627

Have you looked at the Position property of the CommandBar object?

0
 
LVL 1

Expert Comment

by:Chrynoble
ID: 2650176
Try

CommandBar(index).Position = msoBarMenuBar
0
 

Author Comment

by:quantz
ID: 2650244
Commandbar(1) gave an error.
Toolbar(1) gives no error, but still puts the bar in the middle of the screen
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:quantz
ID: 2650329
Actually, after a bunch more fussing around, Chrynoble's answer had pointed me in the right direction.......so Chrynoble gets the points....repost & I will accept
0
 
LVL 1

Expert Comment

by:pclement
ID: 2650421
quantz,

You didn't read my answer did you?

0
 
LVL 1

Expert Comment

by:pclement
ID: 2650853
Well in that case we need to post:

CommandBars("Standard").Position =msoBarTop

....so that any link to this question has the correct answer.

0
 
LVL 1

Accepted Solution

by:
Chrynoble earned 50 total points
ID: 2661052
quantz,

I am not point hungry, give them to pclemnt.

pclemnt,

I posed an answer to the question because you only left a comment.
0
 
LVL 1

Expert Comment

by:pclement
ID: 2661260
Chrynoble,

I'm not going to sweat it either, quantz can distribute the points to whomever he believes helped him the most.

If he wanted a specific code example as opposed to checking out my doc reference, then that is fine with me.

I often post comments and provide pointers because I feel people learn better by doing to bit of research and work on their own. I don't generally don't like to give full complete code examples, but that seems to be the nature of the biz over here if you want the points. ;-)



 
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question