Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]() Okay, This may sound like a dumb question but how do I restore the command bars in Excel. I've managed to delete them all while playing about with the following code. Each time I open Excel there is no longer any menus. I'm in a right panic at this time ![]() Sub Change_Cell_Menu() Dim IDnum As Variant Dim N As Integer Dim Ctl As CommandBarControl 'Set Enabled to False for all the controls For Each Ctl In CommandBars("Cell").controls On Error Resume Next Ctl.Enabled = False On Error GoTo 0 Next Ctl Sub Disable_Command_Bars_1() 'This will disable all BuiltIn Command bars Dim Cbar As CommandBar For Each Cbar In Application.CommandBars If Cbar.BuiltIn = True Then Cbar.Enabled = False End If Next End Sub Any help is urgently needed. -Joe -- nrussell ------------------------------------------------------------------------ nrussell's Profile: http://www.excelforum.com/member.php...o&userid=23731 View this thread: http://www.excelforum.com/showthread...hreadid=374054 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
restore the title bar in excel? | Excel Discussion (Misc queries) | |||
restore the title bar in excel? | Excel Discussion (Misc queries) | |||
Restore a deleted document | Excel Discussion (Misc queries) | |||
How to add a button to restore all altered cells original values? | Excel Discussion (Misc queries) | |||
How to restore menu bar in microsoft word? | Excel Discussion (Misc queries) |