Recorded the following, where i used "Add Chart Element | Axis Titles | Primary Vertical" in the interface.
Does not play back. Error at last line is "Doesn't support this property or method".
I also tried
Which gave the same error.
Is there a way in VBA to set the caption for the Primary Value axis? Is this simply a "pure bug" (just doesn't work)?
Note the same recorded lines did successfully work for the PrimaryCategoryAxis (as in):
Thanks!
VBA Code:
Sub Macro3()
'
' Macro3 Macro
'
'
ActiveSheet.ChartObjects("Chart 12").Activate
ActiveChart.PlotArea.Select
ActiveChart.ChartArea.Select
ActiveChart.SetElement (msoElementPrimaryValueAxisTitleAdjacentToAxis)
Selection.Caption = "Exponential"
End Sub
I also tried
Code:
ActiveChart.Axes(xlValue).Select
Selection.Caption = "Exponential"
Is there a way in VBA to set the caption for the Primary Value axis? Is this simply a "pure bug" (just doesn't work)?
Note the same recorded lines did successfully work for the PrimaryCategoryAxis (as in):
Code:
ActiveChart.SetElement (msoElementPrimaryCategoryAxisTitleAdjacentToAxis)
Selection.Caption = "Days"
Thanks!