

Whenever adding a chart via VBA it's a good practice to first delete any series which got auto-added. If you insert a chart sheet or chartobject while there's data selected on a worksheet, the chart will auto-plot the selected data. Axes(xlValue, xlPrimary).AxisTitle.Text = "Power (kW)" Axes(xlValue, xlPrimary).HasTitle = True Axes(xlCategory, xlPrimary).AxisTitle.Text = "Time (h)" Axes(xlCategory, xlPrimary).HasTitle = True SetElement (msoElementChartTitleAboveChart) There is no work, where we don’t deal with the data. Analysis of data is the process of deriving the inferences by finding out the trends, averages etc. As we know that EXCEL is a super analytical tool.

' If there is a previous chart, delete it INTRODUCTION CHARTS are the graphic representation of any data. Any ideas on whats causing this? Sub CreatingChartOnChartSheet() Continuing to rerun my code repeats the cycle of good plot -> bad plot -> good plot. Source : Add a second data series from another sheet At first, the chart doesn’t yet resemble a box plot, as excel draws stacked columns by default from. Then, when I run the code a third time, I get the correct plot once again. A scatter plot, also known as a scatter chart, xy graph/chart, or scatter diagram, is a chart where the relationship between two (2) sets of numeric data is shown. However, when I rerun the code with a "Power Chart" present, I get 3 additional series showing up, two with blank data and one with only y values, corresponding to the last column in my worksheet. when there is no "Power Chart" present), it plots the data correctly. When I run the code shown below for the first time (i.e. I am trying to create an xy scatter plot on its own worksheet using VBA.
