ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to change chart properties. (https://www.excelbanter.com/excel-programming/437381-how-change-chart-properties.html)

cr113

How to change chart properties.
 

Suppose you insert 2 charts "non programmatically" in an Excel
worksheet (click InsertColumnStacked 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?

Paul

How to change chart properties.
 
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 InsertColumnStacked 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?
.



All times are GMT +1. The time now is 09:38 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com