I have the following code building charts, but am stumped as to how to successfully include a secondary y axis. the hasaxis properties don't seem to be including a secondary axis
Code:
With ch .HasTitle = True
.ChartTitle.Text = aa & StartDate & " to " & EndDate
.ChartTitle.Font.Size = 8
.ChartType = xlLine
.SetSourceData Source:=Range(RngStart & ":" & RngEnd)
.SeriesCollection.Add (Worksheets(DataSht).Range(DataRange))
.HasAxis(xlValue, xlPrimary) = True
.HasAxis(xlValue, xlSecondary) = True
.HasLegend = False
End With