Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I accidentally deleted the Insert command from my cell menu, and I can't seem
to get it back. Here's my code: Sub getInsertBack() Dim myBar As CommandBar Dim myButton As CommandBarButton Set myBar = Application.CommandBars("cell") Set myButton = myBar.Controls.add(msoControlButton, 3181, , 6) End Sub I keep getting a run-time error saying the add method has failed. The code looks correct. Can someone help? Thanks, Pflugs |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You can just reset the command to factory defaults:
Type: Application.CommandBars("Cell").Reset in the Immediate window. -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting www.cpearson.com (email on the web site) "Pflugs" wrote in message ... I accidentally deleted the Insert command from my cell menu, and I can't seem to get it back. Here's my code: Sub getInsertBack() Dim myBar As CommandBar Dim myButton As CommandBarButton Set myBar = Application.CommandBars("cell") Set myButton = myBar.Controls.add(msoControlButton, 3181, , 6) End Sub I keep getting a run-time error saying the add method has failed. The code looks correct. Can someone help? Thanks, Pflugs |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Bring up the Customize dialog box, select the Commands tab, select the
appropriate "Categories" in the left list box, then drag the appropriate command from the "Commands" list box back onto the menu. These instructions are for Excel 2000, and may be slightly different in your version. -- Regards, Bill Renaud |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how do i find an accidentally deleted file? | Excel Discussion (Misc queries) | |||
accidentally deleted two columns, can I recover them | Excel Discussion (Misc queries) | |||
How do I retrieve a accidentally deleted file in Excel? | Excel Discussion (Misc queries) | |||
WHY DOES A MENU COMMAND NOT STAY PERMANENTLY DELETED | Excel Discussion (Misc queries) | |||
deleted accidentally a document in excel | Excel Discussion (Misc queries) |