Format All Series in an Excel Line Chart at Once
Question details
Apply consistent formatting to all series in an Excel line chart without formatting each one separately.

- 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.
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.
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.
In desktop Excel, open the Developer tab and select Visual Basic. If the tab is hidden, enable Developer in Excel's ribbon settings.
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
Return to Excel and click the chart area. Select Developer > Macros, choose FormatChartSeries, and click Run.
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.

Filter the chart to show fewer series
Use chart filters when you only need to display a subset of the series rather than format them all.
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.

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.




