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

add "Tools" back into Excel Toolbar

Status
Not open for further replies.

hrm1220

Technical User
Aug 31, 2005
134
US
ok. I really screwed my Excel up. I was trying to delete a custom button I created in the "Tools" menu and accidentally delete the "Tools" menu
Code:
Sub DeleteMenuItem()
On Error Resume Next
CommandBars(1).FindControl(ID:=30007).Delete
end sub

I've tried replacing "Delete" with "Add" and that didn't seem to work.

Any help will be GREATLY appreciated.

 
ok. I've figured out how to get my "Tools" back into the toolbar
Code:
CommandBars.ActiveMenuBar.Reset

thx
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top