Orientation of custom toolbar

E

ecrichlow

I have created my own toolbar for PowerPoint. Works beautifully.

One problem.

When I run my VBA code manually, I get a nice, horizontal toolbar.
But when I save my code as a PowerPoint Add-In, install it and have it
run automatically, the toolbar comes up vertically, in the middle of
the screen, which is a really inconvenient place for it to be.

Is there some way I can force the toolbar to start up horizontally,
positioned next to or directly below the PowerPoint toolbar?

....Thanx...
....Eric...
 
S

Steve Rindsberg

I have created my own toolbar for PowerPoint. Works beautifully.

One problem.

When I run my VBA code manually, I get a nice, horizontal toolbar.
But when I save my code as a PowerPoint Add-In, install it and have it
run automatically, the toolbar comes up vertically, in the middle of
the screen, which is a really inconvenient place for it to be.

Is there some way I can force the toolbar to start up horizontally,
positioned next to or directly below the PowerPoint toolbar?

Post the code you're using to create the toolbar, please.


================================================
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
 
J

Jim Gordon MVP

Hi Eric,

Try setting the toolbar's height and width. Something like this should
work:

Set MyBar = CommandBars("TheToolbarsName")
MyBar.Position = msoBarTop
With MyBar
.Height = 31
.Width = 175
.Top = 90
.Left = 225
.Visible = True
End With
 
E

ecrichlow

Thanks, Jim, that did the trick. Too bad it looks like I can't dock it
adjacent to PowerPoint's toolbar, though.

....Eric...
 

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