ethaneandethaneproducts
New Member
- Joined
- Jul 14, 2022
- Messages
- 21
- Office Version
- 2016
- Platform
- Windows
I have a macro that's designed to change the minimum and maximum axis values for a chart based on values entered in a cell. Example below
Rather than calling upon "Chart 32", I'd like to just update all charts on the active sheet (there are a lot). How would I go about this?
Thank you
VBA Code:
ActiveSheet.ChartObjects("Chart 32").Chart.Axes(xlCategory).MinimumScale = Range("C2").Value
ActiveSheet.ChartObjects("Chart 32").Chart.Axes(xlCategory).MaximumScale = Range("C3").Value
Rather than calling upon "Chart 32", I'd like to just update all charts on the active sheet (there are a lot). How would I go about this?
Thank you