How to Batch Create and Batch Modify Excel Charts
Faced with a dozen or more tables with the same structure, how can I quickly build a set of charts and apply the same style to all of them at once? This article presents three approaches—template copying, theme colors, and macro batch processing—along with a checklist.
Key Points of This Article
- Tables with the same structure must first have unified headers and data positions; otherwise, when batch-replacing data sources, the charts will be plotted incorrectly.
- Build one well-formatted chart as a template first; after copying it, you only need to replace the data source, which saves the time of setting up each chart individually.
- Write the color scheme into the theme colors and copy the styles uniformly from the template, so you only need to change things in one place when modifying.
- When there are many charts or the process must be repeated, using a VBA macro to iterate over chart objects is more reliable than manual operation one by one.
- After batch generation, check each chart's data source, axis ranges, and titles to make sure no chart still points to old data.
If you have a dozen or so tables with the same structure, such as one monthly sales detail sheet or one departmental attendance sheet each, and your manager asks for a chart on every one, inserting and formatting charts one by one is very time-consuming. It also easily leads to inconsistent chart colors and charts whose data sources still point to old ranges. The key to this kind of bulk Excel chart production is not how to draw a single chart, but how to reuse one operation across all the tables.
This article is written for office workers, students, and researchers who need to process large volumes of similar data. After reading it, you will be able to decide which batch-processing approach to use, follow step-by-step instructions to produce a set of charts, apply the same style uniformly across all of them, and use a checklist to verify that nothing has been missed.
If the original table is a PDF, you can first use the PDF editor in the OmniDoc desktop client to export it to an Excel file, then follow the method below. Scanned PDFs need to go through OCR first, and the recognition results must be checked item by item to avoid carrying incorrect numbers into the charts. The desktop client can be downloaded at download.omnidoc.top.
Multiple tables with the same structure: how to batch-create charts? One-sentence conclusion
When the structure is the same, first build one chart as a template, have the other charts reuse its type and style and only replace the data source; when there are many charts and the process has to be repeated, consider using a macro to automate it.
| Your situation | Recommended Practices | Cause |
|---|---|---|
| There are only three or five sheets, and the data ranges are in the same position. | Create one chart, then copy it and change the data source for each copy. | Few steps to operate, no macros needed, results can be checked directly |
| More than a dozen, all with exactly the same structure | Put all the tables in the same workbook, and use template charts plus macros | Manually editing each sheet one by one is error-prone, so a macro applies the same rules. |
| Each table has a different number of data rows. | Data source references a predefined dynamic region or table | Chart range doesn't stop at the old position after the number of rows changes |
| Need to unify colors, fonts, and line widths | First set it up in the template, and use the theme colors for the color scheme. | Changing the theme will automatically update the related charts. |
| The original data is a scanned copy or PDF | First identify or export it as a table, verify the numbers, and then create the chart. | Recognition errors turn directly into incorrect data in the charts. |
Before You Begin: Confirm These Points
- Whether the header and column order are fully consistent: When batch-replacing the data source, charts map data by position. If "Sales" is in column B in some tables and in column C in others, the copied charts will plot the wrong columns as series. Before you start, check the headers of every table against the same template.
- Whether the data range is clean: Total rows, note rows, and blank rows mixed into the data range can add an extra category to the chart, or plot blanks as zero-height bars. It is advisable to move total rows outside the data range.
- Whether the chart type is settled: The same data set can be shown as a line chart to display trends or as a column chart to compare magnitudes. If the type is changed midway through a batch job, every chart has to be redone, so deciding it first saves effort.
- Whether multiple charts need a unified axis: If you want to compare several charts, set the maximum and minimum values of the vertical axis to the same range. Otherwise each chart scales automatically, which can visually mislead the reader.
- Keep the original file: Batch changes have a wide impact. Save a copy before operating, so you can roll back if something goes wrong.
Steps to batch-create charts from multiple structurally identical tables in Excel
- Consolidate all the tables into the same workbook, with one worksheet for each table, and name the sheets consistently by month or department, for example "2024-01" and "2024-02", so that they are easy to check in order later.
- On the first sheet, select the data range, insert the chart type you need, and then adjust the title, axis names, and legend position. This chart becomes the template chart.
- Check the data sources of the template chart: the series names, category labels, and value ranges should point to the header row, the category column, and the value column respectively, without selecting too much or too little.
- Switch to the second worksheet, copy the template chart and paste it into this sheet, then open the chart's data source settings and change the referenced sheet name and data range to those of this sheet.
- Handle the remaining worksheets in the same way. If there are many sheets, you can complete only the first two, confirm they are correct, and then copy the chart to the rest of the tables following the same steps.
- If you will add data later, convert the data range into a table or define it as a dynamic range, then point the chart's data source to it, so that newly added rows are automatically included in the chart.
- Link the chart title to a cell on the same sheet, such as the month or department name, so the title changes with the data and you avoid making mistakes when editing the title by hand.
- Check in order from the first sheet to the last, and confirm that no chart still points to the data of the previous sheet.
Batch-modifying styles: how one change propagates to all charts
Batch modifications fall into two categories: one is appearance, including color, line width, font, and gridlines; the other is data and type. Appearance changes usually follow three approaches.
- Uniform copying from a template: Define the chart appearance on a template, and copy it for every new chart so you don't have to configure each one individually. However, charts that have already been made are not updated automatically; you need to copy them again or adjust them manually.
- Unify colors with theme colors: Write the color scheme into the workbook's theme, and have chart series use theme colors. After adjusting the theme, the colors of related charts change accordingly, so you don't need to change colors chart by chart.
- Unify settings with a macro: Use VBA to loop through all chart objects in the workbook and apply the same set of settings to line width, fonts, and colors. This suits situations with dozens or more charts that need to be run repeatedly.
Before using the macro, please back up your file, and test it on a single worksheet first. Once you have confirmed that the results meet your expectations, run it on the full set.
📊 Core Comparison
| Method | Suitable number of sheets | Learning cost | How to make later changes |
|---|---|---|---|
| Manually copying templates | Within ten sheets | Low | Each image has to be adjusted individually |
| Copy template plus theme colors | Dozens of slides | Low | Changing the theme alone unifies the color scheme |
| VBA macro batch processing | Dozens of sheets or more, or tasks that need to be repeated | Higher | Run once after the code is fixed, but testing is required |
Verify item by item after completing
| Inspection item | How do you see it? | What should I do if I have a problem? |
|---|---|---|
| Data source | Open the data source settings of each chart and verify the worksheet names and ranges referenced by the series and categories. | When quoting the old table, change to the scope of this table, then check whether the data is consistent with the table. |
| Numerical Values and Labels | Spot-check a few values to see whether they match the original table, and whether the order of the category labels is correct. | When the numbers don't match, go back to the original table to check, and if necessary correct the source data and regenerate. |
| Axis range | The chart to be compared: do the large values and small values on the vertical axis have the same scale? | Use a fixed range uniformly, to avoid automatic scaling misleading readers. |
| Title and Legend | Does the title change with the table name, and does the legend correspond to the correct series? | Change to a linked cell, or manually correct it to ensure it matches the data |
| Appearance consistency | Are the colors, line widths, and fonts the same as the template? | Re-copy from the template or unify the theme colors, then spot-check a few slides after the macro runs. |
❓ Frequently Asked Questions (FAQ)
1. Can colors be changed in bulk, or do I have to change them one by one?
Not necessarily. Write the color scheme into the workbook's theme colors, and have the chart series use theme colors; then when you change the theme, the related charts' colors will update automatically. If the charts already have fixed colors, you need to use a macro to loop through the charts and set them uniformly, or copy them again from the template.
2. When printing multiple charts in batches, how can I avoid layout problems?
First arrange the size and position of the charts on one worksheet, then set the print area and paper orientation uniformly. When there are many charts, you can place them in a fixed grid on the same worksheet with every chart kept at the same size, so the printed layout will be neater.
3. The number of data rows changes every month—how can the chart update automatically?
Convert the data range to a table, or define it as a dynamic range, and then point the chart's data source to it. After rows are added or deleted, the chart range adjusts accordingly, so you don't have to re-edit the data source every month.
4. Can I fill images into the data series of multiple charts at once? Is batch processing possible?
You can first set a picture fill on the data series of a template chart, and once you confirm the result, copy it to other charts. Charts that have already been created need to be set one by one or processed with a macro. Before doing this in batch, it is advisable to test the picture's stretching and scaling on a single chart first.
5. If an error occurs after running a macro, could data be lost?
The macro mainly modifies the appearance of charts and their data source references, and generally does not change the original data in the cells. However, for safety, you should back up the workbook before running it, test it on a copy, and only run it on the official file once you have confirmed everything is correct.
📝 Summary
The key to producing Excel charts in batches is to first standardize the table structure, then complete all the settings with a single template chart, and finally update the styling uniformly using theme colors or a macro. Following the steps and checklist in this article reduces the amount of manual adjustment needed for each chart and also lowers the risk of charts pointing to the wrong data.


