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

Reset Toolbar in Excel from VB

Status
Not open for further replies.

BCTjacko

Technical User
Jun 5, 2001
4
AU
Hi there,

I have a need to reset the 'Standard' toolbar in Excel within a small VB app. Can anyone tell me if this is the correct/best code to use?


Dim appExcel As Excel.Application
Dim x As CommandBar
Set appExcel = New Excel.Application
Set x = CommandBars("Standard")
x.Reset
Set appExcel = nothing


Cheers Brett.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top