Sub topic 3
Contextual Tabs That Appear When You Select an Object
This chapter assumes you can open a blank workbook and find the standard ribbon tabs (Home, Insert, Formulas, and so on). Here you learn why extra tabs sometimes appear, and how to bring them back when they vanish.
What a contextual tab is
A contextual tab is a ribbon tab that appears only while a certain object is selected. The ribbon stays short until you need these tools. Excel shows contextual tabs at the right end of the ribbon, under a colored label that names the object. Click away from the object and the tabs disappear.
Common examples:
| Object you select | Label above the tabs | Tabs that appear |
|---|---|---|
| A cell inside an Excel table | Table Design | Table Design |
| A chart | Chart Design | Chart Design, Format |
| A picture | Picture Format | Picture Format |
| A shape or text box | Shape Format | Shape Format |
| A PivotTable | PivotTable Analyze | PivotTable Analyze, Design |
Tab names vary slightly between Excel versions. Older versions show a "Tools" label, such as Table Tools or Chart Tools, with the tabs grouped under it.
How they fit the ribbon structure
Contextual tabs follow the same layout as the standard ones. Each has groups, and each group holds commands. They add to the ribbon and do not replace Home or Insert. Because the standard tabs stay available, you can format cells on Home while a chart is still selected.
Worked example: a table
- Type a heading row in A1:C1 (Item, Region, Sales) and a few rows of data below it.
- Click any cell in the data.
- Press Ctrl+T and confirm the range in the Create Table dialog box.
- Look at the right end of the ribbon. The Table Design tab has appeared.
- Open it. The Table Styles group changes the look, and the Properties group holds the table name.
- Click a cell outside the table. The tab disappears.
- Click inside the table again. The tab returns.
Common errors
- The tab is missing. The object is not actually selected. For a chart, click its border or an empty area inside it, not a cell behind it. For a table, click a cell inside the table range.
- The tab shows but looks empty. The ribbon may be collapsed. Press Ctrl+F1 to expand it, or click the tab name once more.
- You cannot find the tab in the customization list. Contextual tabs appear under "Tool Tabs" in the Customize Ribbon list. You can add commands to them, but the tabs still show only when their object is selected.
- You selected two different objects. Selecting a chart and a picture together may show neither set of tabs, or only one. Select one object at a time.
Exercise
You select a chart and see Chart Design and Format tabs. You click cell F20, which is not part of the chart. What happens to those tabs, and how do you get them back?
Show answer
They disappear because no chart is selected. Click the chart again, on its border or an empty area inside it, and they reappear.