PC Review


Reply
Thread Tools Rate Thread

How to change chart properties.

 
 
cr113
Guest
Posts: n/a
 
      13th Dec 2009

Suppose you insert 2 charts "non programmatically" in an Excel
worksheet (click Insert>Column>Stacked Colum for example). How would
you change the chart properties programmatically? I've used the shapes
collection, but that only worked for me with one chart. The problem is
that I don't know how to differentiate between multiple charts. Is
there some way to name the chart or shape somehow?
 
Reply With Quote
 
 
 
 
Paul
Guest
Posts: n/a
 
      13th Dec 2009
For all this type of action try recording a macro which selects your chart,
then changes the relevant properties.

"cr113" wrote:

>
> Suppose you insert 2 charts "non programmatically" in an Excel
> worksheet (click Insert>Column>Stacked Colum for example). How would
> you change the chart properties programmatically? I've used the shapes
> collection, but that only worked for me with one chart. The problem is
> that I don't know how to differentiate between multiple charts. Is
> there some way to name the chart or shape somehow?
> .
>

 
Reply With Quote
 
cr113
Guest
Posts: n/a
 
      14th Dec 2009
On Dec 13, 1:54*pm, Paul <P...@discussions.microsoft.com> wrote:
> For all this type of action try recording a macro which selects your chart,
> then changes the relevant properties.


The macro doesn't seem to record anything after you select the chart.

This is all I get:

ActiveSheet.ChartObjects("Chart 1").Activate

I think the real question is how can I rename a chart? That would
solve the problem.


>
>
>
> "cr113" wrote:
>
> > Suppose you insert 2 charts "non programmatically" in an Excel
> > worksheet (click Insert>Column>Stacked Colum for example). How would
> > you change the chart properties programmatically? I've used the shapes
> > collection, but that only worked for me with one chart. The problem is
> > that I don't know how to differentiate between multiple charts. Is
> > there some way to name the chart or shape somehow?
> > .- Hide quoted text -

>
> - Show quoted text -


 
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
Macro to change position of chart labels on line chart Shane Henderson Microsoft Excel Charting 1 27th May 2011 09:31 AM
'Automatic' change to Line Chart from XY Scatter Chart - cannotchange back Daniel Microsoft Excel Discussion 2 10th Nov 2010 04:29 PM
Change Chart Properties for Multiple Chart Shts using a Worksheet KUMPFfrog Microsoft Excel Charting 0 22nd Jul 2009 11:01 PM
Change graphic chart properties Israel Microsoft Excel Misc 2 17th Jun 2008 06:20 PM
How to change chart properties given command from cell =?Utf-8?B?QXdpbGw=?= Microsoft Excel Programming 1 20th Nov 2005 11:40 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:37 PM.