i can not make change my chart type in VBA code
could you tell me why?
here is my code
everything works but not my charttype
Set oChart = oexcel.Charts.Add()
oChart.chartType = xlXYScatter
With oChart
.HasTitle = True
.HasLegend = False
.ChartTitle.Characters.Text = "Mercury Deposition Network - Matrix Duplicate Relative Percent Difference"
.Axes(1).HasTitle = True
.Axes(1).AxisTitle.Characters.Text = "January ~ December"
.Axes(3).HasTitle = False
.Axes(2).HasTitle = True
.Axes(2).AxisTitle.Characters.Text = "Relative Percent Difference"
End With
could you tell me why?
here is my code
everything works but not my charttype
Set oChart = oexcel.Charts.Add()
oChart.chartType = xlXYScatter
With oChart
.HasTitle = True
.HasLegend = False
.ChartTitle.Characters.Text = "Mercury Deposition Network - Matrix Duplicate Relative Percent Difference"
.Axes(1).HasTitle = True
.Axes(1).AxisTitle.Characters.Text = "January ~ December"
.Axes(3).HasTitle = False
.Axes(2).HasTitle = True
.Axes(2).AxisTitle.Characters.Text = "Relative Percent Difference"
End With