Simple Chart name modification Not working

  • Thread starter Thread starter R Tanner
  • Start date Start date
R

R Tanner

When I try to do the following procedure, I get an 'Out of Memory'
error. Why would this be?

Sub nameidentify()

Application.ActiveChart.Name = "Analysis"

End Sub
 
That line works on a chart sheet. For an embedded chart you need:

Application.ActiveChart.Parent.Name = "Analysis"

- Jon
 
Try this syntax:

Sub nameidentify()
With Sheets(1).ChartObjects(1).Chart
.HasTitle = True
.ChartTitle.Text = "Analysis"
End With
End Sub

I couldn't get it to respond to ActiveChart.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top