PC Review


Reply
Thread Tools Rate Thread

Controling Chart Names

 
 
AllSensibleNamesTaken
Guest
Posts: n/a
 
      12th Nov 2008
Is there a way to control the names charts are given in Excel?
For example, a combo box can be renamed by setting its Name property.

I cannot see a way to change a Chart's name.
I need this so my VBA code can correctly distinguish between different
charts using a more sensible naming convention than Chart1, Chart2 etc...

I sigh in expectation of no solution... perhaps what I should do is finally
ditch VBA and move to a proper OO .NET language where I hope to find event
handlers with some from of "this" concept. Anyone had good or bad experiences
moving or writing new event driven .NET code to work with Excel?

Thanks so much
 
Reply With Quote
 
 
 
 
Gary''s Student
Guest
Posts: n/a
 
      12th Nov 2008
If you have already created the chart:

Sub dural()
ActiveSheet.ChartObjects("Chart 1").Activate
ActiveChart.Parent.Name = "some logical name"
End Sub
--
Gary''s Student - gsnu200813
 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      12th Nov 2008
Instead of just selecting the chart, Shift-Select it. You will then see the
chart name appear in the Names box, where you can change it.

--
__________________________________
HTH

Bob

"AllSensibleNamesTaken" <(E-Mail Removed)>
wrote in message news:CD081036-2813-4BAB-A6B0-(E-Mail Removed)...
> Is there a way to control the names charts are given in Excel?
> For example, a combo box can be renamed by setting its Name property.
>
> I cannot see a way to change a Chart's name.
> I need this so my VBA code can correctly distinguish between different
> charts using a more sensible naming convention than Chart1, Chart2 etc...
>
> I sigh in expectation of no solution... perhaps what I should do is
> finally
> ditch VBA and move to a proper OO .NET language where I hope to find event
> handlers with some from of "this" concept. Anyone had good or bad
> experiences
> moving or writing new event driven .NET code to work with Excel?
>
> Thanks so much



 
Reply With Quote
 
AllSensibleNamesTaken
Guest
Posts: n/a
 
      13th Nov 2008
Nice one,

I find the Names box very fidgety. For some reason it only gives me a couple
of seconds to change anything in it. If I'm not quick enough it goes back to
the value before I started editing.

Is anyone else having that problem?

Can I perhaps use the namesManager (Ctrl+F3) in some way to name charts?

"Bob Phillips" wrote:

> Instead of just selecting the chart, Shift-Select it. You will then see the
> chart name appear in the Names box, where you can change it.
>
> --
> __________________________________
> HTH
>
> Bob
>
> "AllSensibleNamesTaken" <(E-Mail Removed)>
> wrote in message news:CD081036-2813-4BAB-A6B0-(E-Mail Removed)...
> > Is there a way to control the names charts are given in Excel?
> > For example, a combo box can be renamed by setting its Name property.
> >
> > I cannot see a way to change a Chart's name.
> > I need this so my VBA code can correctly distinguish between different
> > charts using a more sensible naming convention than Chart1, Chart2 etc...
> >
> > I sigh in expectation of no solution... perhaps what I should do is
> > finally
> > ditch VBA and move to a proper OO .NET language where I hope to find event
> > handlers with some from of "this" concept. Anyone had good or bad
> > experiences
> > moving or writing new event driven .NET code to work with Excel?
> >
> > Thanks so much

>
>
>

 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      13th Nov 2008
I don't get that problem. Once selected it stays.

NameManager manages defined names, a chart name is not one of those, so it
can't help you.

--
__________________________________
HTH

Bob

"AllSensibleNamesTaken" <(E-Mail Removed)>
wrote in message news:C750C9B0-8CC9-42B4-BB7B-(E-Mail Removed)...
> Nice one,
>
> I find the Names box very fidgety. For some reason it only gives me a
> couple
> of seconds to change anything in it. If I'm not quick enough it goes back
> to
> the value before I started editing.
>
> Is anyone else having that problem?
>
> Can I perhaps use the namesManager (Ctrl+F3) in some way to name charts?
>
> "Bob Phillips" wrote:
>
>> Instead of just selecting the chart, Shift-Select it. You will then see
>> the
>> chart name appear in the Names box, where you can change it.
>>
>> --
>> __________________________________
>> HTH
>>
>> Bob
>>
>> "AllSensibleNamesTaken" <(E-Mail Removed)>
>> wrote in message
>> news:CD081036-2813-4BAB-A6B0-(E-Mail Removed)...
>> > Is there a way to control the names charts are given in Excel?
>> > For example, a combo box can be renamed by setting its Name property.
>> >
>> > I cannot see a way to change a Chart's name.
>> > I need this so my VBA code can correctly distinguish between different
>> > charts using a more sensible naming convention than Chart1, Chart2
>> > etc...
>> >
>> > I sigh in expectation of no solution... perhaps what I should do is
>> > finally
>> > ditch VBA and move to a proper OO .NET language where I hope to find
>> > event
>> > handlers with some from of "this" concept. Anyone had good or bad
>> > experiences
>> > moving or writing new event driven .NET code to work with Excel?
>> >
>> > Thanks so much

>>
>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: chart legend names in a chart itself Jon Peltier Microsoft Excel Charting 0 22nd Jan 2007 11:11 PM
Re: chart legend names in a chart itself Tushar Mehta Microsoft Excel Charting 0 22nd Jan 2007 10:57 PM
programmatically (or otherwise) controling/editing the "Select Names" dialog box Conan Kelly Microsoft Outlook Form Programming 1 2nd Sep 2006 01:01 AM
controling dates on an access chart =?Utf-8?B?V2FyZGVu?= Microsoft Access 0 30th Mar 2006 06:29 PM
return all worksheet tab names and chart sheet tab names in report - an example DataFreakFromUtah Microsoft Excel Programming 2 6th Oct 2004 08:09 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:57 AM.