annemarie
08-14-2009, 01:33 AM
Hi there again. I am posting again to ask for you help. I have recorded the below code but what I want to do is to make the source sheet and the data source variable. And also I want the Chart Title to be equal to the work sheet name.
Charts.Add
ActiveChart.ChartType = xlLineMarkers
ActiveChart.SetSourceData Source:=Sheets("cont_dots_PN_color").Range( _
"N1:Y344"), PlotBy:=xlColumns
ActiveChart.Location Where:=xlLocationAsObject, Name:="cont_dots_PN_color"
With ActiveChart
.HasTitle = True
.ChartTitle.Characters.Text = "Dots Plain Normal (Color)"
.Axes(xlCategory, xlPrimary).HasTitle = False
.Axes(xlValue, xlPrimary).HasTitle = True
.Axes(xlValue, xlPrimary).AxisTitle.Characters.Text = "Temperature"
End With
Thank you very much for the help
annemarie
Charts.Add
ActiveChart.ChartType = xlLineMarkers
ActiveChart.SetSourceData Source:=Sheets("cont_dots_PN_color").Range( _
"N1:Y344"), PlotBy:=xlColumns
ActiveChart.Location Where:=xlLocationAsObject, Name:="cont_dots_PN_color"
With ActiveChart
.HasTitle = True
.ChartTitle.Characters.Text = "Dots Plain Normal (Color)"
.Axes(xlCategory, xlPrimary).HasTitle = False
.Axes(xlValue, xlPrimary).HasTitle = True
.Axes(xlValue, xlPrimary).AxisTitle.Characters.Text = "Temperature"
End With
Thank you very much for the help
annemarie