Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Controling Chart Names

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Controling Chart Names

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
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,420
Default Controling Chart Names

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



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Controling Chart Names

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




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,420
Default Controling Chart Names

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"
wrote in message ...
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"
wrote in message
...
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
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
Controling IE after security popup Nick Excel Programming 0 May 11th 07 06:06 PM
Controling Word from Excel Oggy Excel Programming 1 May 1st 07 12:04 AM
controling a .xls from another .xls on-a-mission New Users to Excel 2 February 17th 06 06:28 AM
Controling Acrobat PDFs YS Excel Discussion (Misc queries) 1 December 18th 04 10:47 AM
return all worksheet tab names and chart sheet tab names in report - an example DataFreakFromUtah Excel Programming 2 October 6th 04 08:09 PM


All times are GMT +1. The time now is 04:47 PM.

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

About Us

"It's about Microsoft Excel"