Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 87
Default Simple Chart name modification Not working

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,582
Default Simple Chart name modification Not working

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

Application.ActiveChart.Parent.Name = "Analysis"

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


"R Tanner" wrote in message
...
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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Simple Chart name modification Not working

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.
"R Tanner" wrote:

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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I create a behavior modification chart for children Anthony New Users to Excel 2 June 3rd 09 09:36 PM
Chart Axis Modification R Tanner Excel Programming 6 June 23rd 08 07:08 PM
This should be so simple but it's not working, please help tahrah Excel Programming 4 January 16th 07 12:11 AM
Simple Macro Modification [email protected] Excel Programming 4 May 16th 05 08:06 PM
This should be simple but it's not working for me! hellokitty New Users to Excel 4 April 12th 05 01:26 AM


All times are GMT +1. The time now is 08:37 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"