Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Word 2000 VBA Commandbars Order

Status
Not open for further replies.

PBAPaul

Programmer
Aug 3, 2002
140
GB
I have written the following code in Word 2000 so that my required 3 commanbars are automatically loaded when Word starts.

I like the toolbars to be on their own separate line so how can I make sure that the order is "Standard", then "Formatting" and then "PBA Toolkit". Sometimes other users disturb the order and I have to manually reset them.

Sub Auto_Open()
With CommandBars("Standard")
.Visible = True
.Position = msoBarTop
.left = 0
End With
With CommandBars("Formatting")
.Visible = True
.Position = msoBarTop
.left = 0
End With
With CommandBars("PBA Toolkit")
.Visible = True
.Position = msoBarTop
.left = 0
End With
ActiveWindow.View.Type = wdPrintView
End Sub

I have read about indexRow properties of first & last, but is there a way that I can set any number of commandbars into a sequence?

Please help[ponder]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top