Chart & Visualization Issues

Format All Series in an Excel Line Chart at Once

Natalie TaylorNatalie Taylor Dec 2, 2026 868 views

Question details

Apply consistent formatting to all series in an Excel line chart without formatting each one separately.

Format All Series in an Excel Line Chart at Once
Product
Microsoft Excel
Device & OS
not provided
Scenario
A line chart contains hundreds of series that need the same line width and marker style.
Observed behavior
Excel's standard chart formatting controls often require each series to be formatted separately.
Before you start

Open the workbook in desktop Excel and select the line chart you want to change. To use the VBA solution, make sure macros are permitted by your organization's security settings.

Solution 1Recommended

Use VBA to format every series in the selected chart

Use this method to apply the same line width and marker style across the chart's series.

The example sets each series line to 0.5 points and removes its markers. Change these values in the code if you need different formatting.

1
Open the VBA editor

In desktop Excel, open the Developer tab and select Visual Basic. If the tab is hidden, enable Developer in Excel's ribbon settings.

2
Insert the macro

In the VBA editor, select Insert > Module and paste this code: Sub FormatChartSeries() Dim s As Series If ActiveChart Is Nothing Then MsgBox "Select a chart first." Exit Sub End If For Each s In ActiveChart.SeriesCollection s.Format.Line.Weight = 0.5 s.MarkerStyle = xlMarkerStyleNone Next s End Sub

3
Run the macro

Return to Excel and click the chart area. Select Developer > Macros, choose FormatChartSeries, and click Run.

4
Check the chart

Inspect the chart to confirm that the series have thin lines and no markers. If the chart is filtered, clear the filter and rerun the macro to check all series.

Use VBA to format every series in the selected chart
Save the macro if needed: To keep the macro in the workbook, use File > Save As and choose Excel Macro-Enabled Workbook (.xlsm). VBA macros cannot be run in Excel for the web.
Free Microsoft Office alternative

Work with Excel charts in WPS Spreadsheets

WPS Office is a free, lightweight alternative with a familiar spreadsheet interface. Open compatible Excel workbooks and work with chart data as you migrate between office suites; it does not fix Excel's series-by-series formatting controls.

Open and edit Microsoft Excel .xlsx workbooksWork with spreadsheet data and charts in WPS SpreadsheetsUse a familiar interface that makes switching office suites easierGet a free, lightweight office suite for everyday document work
microsoft office alternative - wps office

Frequently Asked Questions

Can I change the line width for every chart series at once?

In desktop Excel, select the chart and run a VBA macro that loops through ActiveChart.SeriesCollection and sets s.Format.Line.Weight for each series.

How do I remove markers from all series?

Use the VBA editor to run a loop through the selected chart's SeriesCollection and set s.MarkerStyle = xlMarkerStyleNone for each series.

Can I run the macro in Excel for the web?

No. Open the workbook in desktop Excel to create or run a VBA macro. If you want to keep the macro, save the workbook as an .xlsm file.

Does filtering a chart delete its series?

No. Chart Filters controls which series are displayed; it does not delete the source data. Select the chart and reopen Chart Filters to show hidden series again.