I need my chart to change the min and max values dynamically.
I have data that goes out of the range of my chart so i can not use the auto in axis options.
I have inserted this code
It works if i manually change it but not when it is automatically updated by changing the pn in the dropdown menu on d1PHP Code:
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
Select Case Target.Address
Case "$G$13"
ActiveSheet.ChartObjects("Chart 6").Chart.Axes(xlValue) _
.MaximumScale = Target.Value
Case "$F$13"
ActiveSheet.ChartObjects("Chart 6").Chart.Axes(xlValue) _
.MinimumScale = Target.Value
Case "$H$13"
ActiveSheet.ChartObjects("Chart 6").Chart.Axes(xlValue) _
.MajorUnit = Target.Value
Case Else
End Select
End Sub
This is for an automated system so needs to work without user input.
Thanks in advance for any input.
I have gotten this far using this forums help and user input.
Bookmarks