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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Docking XL Toolbar 1

Status
Not open for further replies.

RonRepp

Technical User
Feb 25, 2005
1,031
US
Hi all:

Is there a way in VBA to dock a toolbar? I've searched the forum and XL's help and found nothing.

Thanks,

Ron

Ron Repp
 
Ron,

Code:
Application.CommandBars(TB_NAME).Position = msoBarLeft

Will dock a toolbar with the name contained in TB_NAME to the left side of the XL Window. Some additional Position constants are:
Code:
msoBarRight
msoBarTop
msoBarBottom

Regards,
Mike
 
Mike:

That's exactly what I needed.

Thanks,

Ron

Ron Repp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top