Article ID: 182345
Article Last Modified on 10/11/2006
Run-time error '-2147483640 (80000008)':
Method 'Visible' of object 'CommandBar' failed
On Error Resume Next
For Each ComBar In Application.CommandBars
' To display the command bar names, use the following line.
' MsgBox ComBar.Name
ComBar.Visible = True
Next ComBar
End Sub
NOTE: In the example, an On Error statement is inserted before the For Each
loop. If you run the macro without the On Error statement, you receive the
error message mentioned in this article.
Index Command bar -------------------------------- 19 Query and Pivot 20 Workbook tabs 21 Cell 22 Column 23 Row 24 Cell 25 Column 26 Row 27 Ply 28 XLM Cell 29 Document 30 Desktop 31 Nondefault Drag and Drop 32 AutoFill 33 Button 34 Dialog 35 Series 36 Plot Area 37 Floor and Walls 38 Trendline 39 Chart 40 Formula Bar 41 PivotTable Context Menu 42 Query 43 Query Layout 44 AutoCalculate 45 Object/Plot 46 Title Bar (Charting) 47 Layout 70 Shapes 71 Inactive Chart 72 Excel Control 73 Curve 74 Curve Node 75 Curve Segment 76 Pictures Context Menu 77 OLE Object 78 ActiveX Control 79 WordArt Context Menu 80 Rotate Mode 81 Connector 82 &Wizard 83 Add Command 84 Built-in Menus 85 SystemThese command bars are used for context-sensitive menus and items such as the current list of sheets in a workbook.
Additional query words: xlvbmigrate OFF98 command bar toolbar
Keywords: kbprb kbprogramming KB182345