Powerpoint to Excel

njimack

Well-known Member
Joined
Jun 17, 2005
Messages
7,772
Every month, I receive a presentation which contains a number of embedded charts. I need to extract the data from these and into one of my Excel files.

Currently I'm doing this by hand - right-click chart, select Chart object>Edit, then copy data and paste into my file. I'm looking for way to automate this using Excel VBA. Should be possible but I've never coded in Powerpoint, not even sure how to retrieve the name of each chart.

Any help appreciated.
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Why not do the usual? Record a macro in Powerpoint while you retrieve the chart values and then see what the recorded macro reveals about the Powerpoint object model...?

You can then import that directly into Excel VBA with edits to suit.

It's not the complete answer you wanted, probably, but that's how I'd start something like this.
 
Upvote 0
Been there, done that. The below code was generated by the macro recorder...

Code:
Sub Macro1()
'
' Macro recorded 05/10/2010 by Neil Jimack
'

    ActiveWindow.Selection.SlideRange.Shapes("Object 2").Select
    With ActiveWindow.Selection.ShapeRange
        .Left = 35.625
        .Top = 85.375
        .Width = 277.625
        .Height = 179.5
    End With
End Sub
 
Upvote 0

Forum statistics

Threads
1,225,526
Messages
6,185,471
Members
453,296
Latest member
zashue22

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top