Click here to Skip to main content
15,886,578 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Everybody !!.

I´m working in a project with VBA and I´d really appreciate if somebody could show me how to customize a chart (manipulate individually each element, or column of the seriescollection, give them a different color, height, width, etc ....), or give me a tip about where to find detailed information about it.

Of course I´d been looking for it, but I really need to save time.


Greatings from México City !!!!
Posted

Actually, all you need to do is record a macro doing all the various things to a chart that you want to. Then you can see the code necessary to do what you want.
 
Share this answer
 
Comments
Miguel Altamirano Morales 23-Apr-15 13:24pm    
Thanks a lot RyanDev. I already have done and know about this, I just don´t have much experience with excel and I haven´t been able to find how to do the things I want to do, even manually.

But I´m going to keep searching the way you suggested me. I know it`s just a matter of a little bit of time more.

Thanks for your advice. It`s a good one and I marked it as "accepted". I hope I did it well.
ZurdoDev 23-Apr-15 13:34pm    
What specific issues are you unaware of how to do?
Miguel Altamirano Morales 23-Apr-15 14:28pm    
I want to manipulate separately each one of the columns or rectangles of the seriescollection of a chart.

I mean give a color to the first three columns, another color to the next 3 columns, and so on.

If I could find the properties and methods of the seriescollections objet then I would not have to deal with excel, just Visual Basic, witch i know better.

(Forgive my english, I`m a mexican citizen, where even the president doesn´t speak english well).
Miguel Altamirano Morales 23-Apr-15 14:31pm    
I just can´t find via excel the type of chart the client wants. Maybe because I have office 2013 and the example they gave me it´s in office 2010.
where to find detailed information about it?

For example, here: Chart Object (Excel)[^]
See the samples here: Creating Charts in Excel 2003 Using Visual Basic for Applications Code[^]
 
Share this answer
 
Comments
Miguel Altamirano Morales 23-Apr-15 16:09pm    
Thanks a lot, Maciej
Maciej Los 24-Apr-15 1:53am    
You're very welcome, Miguel ;)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900