As the Title suggest, I need to find the way to set the maximum and minimum value for the X and Y axes of a chart created through a vb.net code. This is the part of the code it should be inserted in:
With ws
.Shapes.AddChart(Excel.XlChartType.xlXYScatterSmoothNoMarkers, 300, 20, 400, 300).Select()
With xlApp.ActiveChart
.SeriesCollection(1).Name = "Force vs Displacement"
.SeriesCollection(1).XValues = "='Sheet" & index & "'!$B$6:$B$14046"
.SeriesCollection(1).Values = "='Sheet" & index & "'!$C$6:$C$14046"
.HasLegend = False
[...]
Thanks for any suggestion made.