PDA

View Full Version : Solved: Loop through charts



jmenche
02-06-2012, 08:51 AM
Hi,

I'm pretty good in Excel VBA but this is my first foray into PowerPoint VBA and i'm getting stuck on simple object model stuff. Why did they get rid of the macro recorder??

I am trying to loop through the charts and change the chart type. I have my own chart template called (LEGO Column).

Here's the other rub. There will be different chart types and a template for each one. What I really need is a macro that will a) determine the chart type on the slide and then b) change it to the appropriate template. My guess is some kind of case select. A simple outline on how to do this is fine. I'm good enough in vba to adapt.

I would appreciate any help as i'm under a deadline.

Thanks

Jeff

:beerchug:

raji2678
02-22-2012, 10:47 PM
You will have to use a proper chart object, instead of an OLE object. In this way, you will be able to change the chart type. i have included the solution.Hope that helps.

jmenche
02-23-2012, 07:42 AM
You will have to use a proper chart object, instead of an OLE object. In this way, you will be able to change the chart type. i have included the solution.Hope that helps.

Thanks!

delete123
03-26-2012, 09:21 AM
thank you brother