toolbar position

M

M.

Excel97!
Whene i'm opening my workbook, vba code created on the fly my toolbar. Excel
positioned my toolbar below other excel toolbar. Could i write some code to
position my toolbar to the right of other defolt excel toolbar. My toolbar
contained only two toolbar buttons, there for is enought smoll to bi
positioned to the right of other excel toolbar.

Regards,
Milos
 
C

Cole

Try this, not sure if it work

Sub BarPosition()
Dim BarLeft As Long

BarLeft = Application.CommandBars("Standard").Width + 1

With Application.CommandBars("Your toolbar name")
.Position = msoBarTop
.Left = BarLeft
.Visible = True
End With
End Sub
 

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