Hello everyone,
I found an excellent piece of article in Chadoo's website, about how to export charts into PPT automatically.
http://chandoo.org/wp/2011/08/03/create-powerpoint-presentations-using-excel-vba/
So my question is how the charts are selected when we use this code in the macro
I found an excellent piece of article in Chadoo's website, about how to export charts into PPT automatically.
http://chandoo.org/wp/2011/08/03/create-powerpoint-presentations-using-excel-vba/
- Firstly it worked fine for me.
- And I am using it in my projects already.
- I created over 100 charts in a work sheet and I ran this code - workign fine
- Nextl, I have added a chart which I forgot earlier. ( Suppose 51th chart )
- When I ran the code again, it shows the newly added plot at the end of PPT, not in 51th place.
So my question is how the charts are selected when we use this code in the macro
Code:
'Loop through each chart in the Excel worksheet and paste them into the PowerPoint
For Each cht In ActiveSheet.ChartObjects