Hey,
Thanks for the response. I think you are correct, but I was not able to fix it.
Set DateRange = Range(Sheets("Sheet1").Cells(3, 7), (Sheets("Sheet 1").Cells(3, lastDateCol)))
Now DateRange contains:
8/3/2009
8/4/2009
8/5/2009
8/6/2009
8/7/2009
8/10/2009
Charts.Add
ActiveChart.ChartType = xlLineMarkers
ActiveChart.SeriesCollection.NewSeries
ActiveChart.SeriesCollection.NewSeries
ActiveChart.SeriesCollection(1).Values = estTotalRange
ActiveChart.SeriesCollection(1).XValues = DateRange
ActiveChart.SeriesCollection(1).Name = "=""Est Total"""
ActiveChart.SeriesCollection(2).Values = actualTotalRange
ActiveChart.SeriesCollection(2).Name = "=""Actual"""
ActiveChart.Location Where:=xlLocationAsObject, Name:="Results"
With ActiveChart
.HasTitle = True
.ChartTitle.Characters.Text = Name
.Axes(xlCategory, xlPrimary).HasTitle = True
.Axes(xlCategory, xlPrimary).AxisTitle.Characters.Text = "Dates"
.Axes(xlValue, xlPrimary).HasTitle = True
.Axes(xlValue, xlPrimary).AxisTitle.Characters.Text = "Y-Axis"
End With
ActiveChart.Parent.Name = "The Chart"
I tried changing the stuff in bold around to categories, etc... However it still plots Aug 8 and Aug 9
What am I missing here?
Thanks again!
Bookmarks