Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / March 2005

Tip: Looking for answers? Try searching our database.

Precisely Docking Custom Toolbars

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John T Ingato - 12 Mar 2005 16:32 GMT
I have created an addin that creates on CommandBar with one button control
to run it.

In a code module I have written the creation and settins methods which are
call by code inside:
ThisWorkbook Sub Workbook_Open()

When I wrote the setting for the toolbar, I included position setting

With TBar
           .Name = CBarName
           .Top = 0
           .Left = 0
           .Visible = True
End With

which creates a floating toolbar in the top left.

So I tried NOT using the . top and .left and instead using

   .position = msoBarTop

But that just centers the toolbar on screen.

How can I dock a custom toolbar into Excel's already present area up top.
What is that area called? and How do I access it?
jb - 16 Mar 2005 16:22 GMT
> I have created an addin that creates on CommandBar with one button control
> to run it.
[quoted text clipped - 22 lines]
> How can I dock a custom toolbar into Excel's already present area up top.
> What is that area called? and How do I access it?

Hi John,
Try Position = 1.  That should enter the new commandbar below the main
bars in word but docked in the same way they are.

HTH
J
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.