Solved

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

Posted on 2000-03-22
8
514 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
  • 4
  • 2
  • 2
8 Comments
 
LVL 1

Expert Comment

by:pclement
Comment Utility

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

0
 
LVL 1

Expert Comment

by:Chrynoble
Comment Utility
Try

CommandBar(index).Position = msoBarMenuBar
0
 

Author Comment

by:quantz
Comment Utility
Commandbar(1) gave an error.
Toolbar(1) gives no error, but still puts the bar in the middle of the screen
0
 

Author Comment

by:quantz
Comment Utility
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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 1

Expert Comment

by:pclement
Comment Utility
quantz,

You didn't read my answer did you?

0
 
LVL 1

Expert Comment

by:pclement
Comment Utility
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
Comment Utility
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
Comment Utility
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

771 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now