Hi,
I get macro A to work but with same concept the macro B doesn't seem to work. What ever values added after = will be show in the graph series values. I have try function text and value but only show same result. Series value shows ='Sheet1'!$AD$22 instead of ='Sheet1'!$AQ$30:$AQ$90
Macro A:
ActiveSheet.ChartObjects("Chart 1").Chart.Axes(xlValue).MaximumScale = [R20]
Macro B:
ActiveSheet.ChartObjects("Chart 1").Chart.SeriesCollection(3).Values = [AD20]
Below is the macro I get from recording:
ActiveSheet.ChartObjects("Chart 1").Activate
ActiveChart.SeriesCollection(3).Name = "=""Line 1"""
ActiveChart.SeriesCollection(3).Values = "='Sheet1'!$AQ$30:$AQ$90"
I get macro A to work but with same concept the macro B doesn't seem to work. What ever values added after = will be show in the graph series values. I have try function text and value but only show same result. Series value shows ='Sheet1'!$AD$22 instead of ='Sheet1'!$AQ$30:$AQ$90
Macro A:
ActiveSheet.ChartObjects("Chart 1").Chart.Axes(xlValue).MaximumScale = [R20]
Macro B:
ActiveSheet.ChartObjects("Chart 1").Chart.SeriesCollection(3).Values = [AD20]
Below is the macro I get from recording:
ActiveSheet.ChartObjects("Chart 1").Activate
ActiveChart.SeriesCollection(3).Name = "=""Line 1"""
ActiveChart.SeriesCollection(3).Values = "='Sheet1'!$AQ$30:$AQ$90"