brianhfield
New Member
- Joined
- Mar 28, 2024
- Messages
- 5
- Office Version
- 365
- Platform
- Windows
Hello! I use named ranges in charts and VBA to change the named ranges so that I can update hundreds of charts in an automated fashion. Let's assume a have a chart that has series1 named range1 and series2 named range2 and i want to use vba to change this so that series1 references named range range3 and series2 references named range range4. I can do all of this successfully.
However, if I copy the chart from sheet1 and paste it into sheet2, and then I execute a vba script that replaces the series references, the chart formatting reverts to the default formatting and I lost the formatting from the original set of charts. Does anyone know how I can prevent excel from resetting the chart formatting when the series names are changed?
However, if I copy the chart from sheet1 and paste it into sheet2, and then I execute a vba script that replaces the series references, the chart formatting reverts to the default formatting and I lost the formatting from the original set of charts. Does anyone know how I can prevent excel from resetting the chart formatting when the series names are changed?