Sub topic 15
Alt text, copying, and exporting charts
This chapter covers three tasks that come after a chart looks right: describing it for people who cannot see it, copying it into other documents, and saving it as an image or file. It assumes you can insert a column, bar, line, or pie chart, edit its title and data labels, and select a chart object on a worksheet.
Why these steps matter
A chart that leaves Excel often loses context. A screen reader cannot read the pixels. A pasted picture does not update when the data changes. An exported image can come out blurry or the wrong size. Each problem has a setting that prevents it, and you should choose it before sharing the chart, not after.
Alt text
Alt text (alternative text) is a short written description attached to a chart. Screen readers read it aloud to people who are blind or have low vision. It also appears if an image fails to load in some exported formats.
Adding alt text
- Click the chart to select the whole chart object, not a single element inside it.
- Right-click the chart area and choose Edit Alt Text. The Alt Text pane opens on the right. You can also use Format Chart Area, then Size & Properties, then Alt Text.
- Type the description in the text box.
- Close the pane. Excel saves the text with the chart.
In recent versions of Excel, the pane offers a Mark as decorative check box. Use it only for charts that add no information, such as a repeated logo-style graphic. A data chart is never decorative.
Writing useful alt text
Good alt text states the chart type, what is measured, and the main finding. It does not repeat every value.
| Weak alt text | Better alt text |
|---|---|
| Chart | Column chart of sales by region. East is highest at 140, West is lowest at 80. |
| Sales by Region chart | Pie chart of share of sales by region. East and North together make up about 60 percent of sales. |
| Line chart with lines | Line chart of monthly website visits from January to December. Visits rise steadily and peak in November. |
Keep it to one or two sentences. If the chart is complex, put the full numbers in a nearby table or in the cell range the chart uses, and mention that in the alt text.
Checking accessibility
Use Review, then Check Accessibility. The checker lists charts that have no alt text. It runs on the whole workbook, so it is a quick way to find charts you forgot.
Alt text is also not a substitute for readable design. Do not rely on color alone to separate series. Data labels, distinct line styles, or a legend with clear names help readers who cannot tell the colors apart.
Copying a chart
Copying a chart has one decision that matters: should the copy stay linked to the data, or become a fixed picture?
- Click the chart to select it.
- Press Ctrl+C (Cmd+C on Mac).
- Click the destination, such as a Word document or PowerPoint slide.
- Open Paste on the Home tab and open the paste options, or use the small options button that appears after pasting.
The common paste options are:
| Option | What you get | Updates with the data? | Best for |
|---|---|---|---|
| Use Destination Theme and Embed Workbook | An editable chart that carries its own copy of the data | No, the copy is separate from your original file | Sending a self-contained document |
| Keep Source Formatting and Embed Workbook | The same, with the chart's original colors and fonts | No | Preserving the exact look |
| Use Destination Theme and Link Data | An editable chart connected to the original workbook | Yes, when the source file is available | Reports that refresh regularly |
| Keep Source Formatting and Link Data | The same, with the original look | Yes | Linked reports that keep the chart's style |
| Picture | A static image | No | Documents that must not change |
A linked chart breaks if the source workbook is moved, renamed, or deleted. Excel then shows the last values it had, or asks you to update the links. An embedded chart stores a full copy of the workbook data, which makes the destination file larger and may expose data you did not intend to share. Check what the embedded workbook contains before sending the file outside your team.
Copying within Excel
To copy a chart to another sheet in the same workbook, select it, press Ctrl+C, go to the other sheet, and press Ctrl+V. The copy keeps pointing at the original cells. If you want it to plot different cells, use Select Data on the copy. Moving a chart between sheets without copying is done with Chart Design, then Move Chart.
Exporting a chart as an image
Sometimes you need a standalone image file for a web page, a report, or an email.
Save as Picture
- Right-click the chart area.
- Choose Save as Picture.
- Pick a file name, a folder, and a format.
Common formats are:
- PNG works well for charts. It keeps text and lines sharp and supports transparency.
- JPEG makes smaller files but adds compression blur around text and thin lines. Avoid it for charts with small labels.
- SVG is a vector format. It scales to any size without losing sharpness, and many web and design tools accept it.
- GIF and TIFF are also offered, but they are rarely the best choice for a chart.
Resolution depends on the chart's size on screen, so a small chart exports as a small image. To get a larger image, resize the chart on the worksheet first, or export as SVG.
Export as PDF
To share the chart as part of a page, select the chart, then use File, Export, Create PDF/XPS Document. In the Options dialog, choose Selection to print only the selected chart. If you leave the default, Excel exports the whole sheet or workbook. PDF output is a good choice when you need predictable layout, though screen reader users need the PDF to be tagged for accessibility, so keep the document-structure option on.
Export with VBA
You can also automate the export. The macro below saves the first chart on the active sheet as a PNG in the workbook's folder.
Sub ExportFirstChartAsPng()
Dim co As ChartObject
Dim filePath As String
If ActiveSheet.ChartObjects.Count = 0 Then
MsgBox "There is no chart on this sheet."
Exit Sub
End If
Set co = ActiveSheet.ChartObjects(1)
filePath = ThisWorkbook.Path & Application.PathSeparator & "chart.png"
co.Chart.Export Filename:=filePath, FilterName:="PNG"
MsgBox "Saved " & filePath
End SubThe workbook must be saved first, because ThisWorkbook.Path is empty for a file that has never been saved. You can set alt text in VBA as well, using co.ShapeRange.AlternativeText = "Column chart of sales by region.".
A before-you-share routine
flowchart TDInstead of a diagram, use this order for any chart you send out:
- Confirm the title, axis labels, and data labels read correctly.
- Add alt text that states the chart type and main finding.
- Run Check Accessibility on the workbook.
- Decide whether the recipient needs live data or a fixed picture.
- Paste with the matching option, or export in the right format.
- Open the result in the destination and check that fonts, colors, and sizes survived.
Common errors
- Selecting a plot element instead of the chart. If you right-click inside the plot area, the menu offers options for that element only. Right-click the blank margin of the chart area.
- Pasting as a linked chart, then emailing the document. The recipient sees stale data or a link warning. Paste as an embedded chart or a picture instead.
- Exporting a tiny chart as PNG and enlarging it. The image becomes blurry. Resize the chart before exporting or use SVG.
- Copying the chart with the cells hidden. By default, a chart does not plot hidden rows and columns. If your pasted chart looks empty, check whether the source data is hidden.
- Leaving the default alt text. Some versions fill in generic text. Replace it with a real description.
Exercise
You built a column chart of sales by region and need to put it in a monthly PowerPoint report. The numbers change every month, and the report is built by the same person who owns the workbook. Which paste option fits best, what should you watch for, and what alt text would you write for the chart?
Show answer
Use a linked paste, such as Use Destination Theme and Link Data, so the chart updates when the workbook changes. Watch for broken links if the workbook is moved, renamed, or deleted, and keep the workbook in a stable location. Alt text example: "Column chart of sales by region. East is highest at 140 and West is lowest at 80."
Exercise
You export a chart as a JPEG for a web page and the axis labels look fuzzy. Name two changes that would improve the result.
Show answer
Export as PNG (or SVG) instead of JPEG, because JPEG compression blurs small text and thin lines. Also make the chart larger on the worksheet before exporting, since the image size follows the chart size. SVG avoids the size problem entirely.