VBA paste charts to Powerpoint

Rastaman

Board Regular
Joined
Feb 18, 2006
Messages
236
I'm looking for a way to automate copying Excel charts into Powerpoint. Optimally I'd like to write some code that I can customize to select various charts within my workbook and copy them to different slides in a Powerpoint file (paste special - enhanced metafile pic), and resize the pasted pic as desired. Is this possible in VBA? I tried a couple different ways of recording macros in both Excel and Powerpoint but no luck.

Any ideas?

Rick
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
I didn't even know Jon had put together such a comprehensive tutorial on the subject. Nifty.

Rick, in my experience I've had better luck pasting pictures of charts rather than actual charts. Pity, because it makes more sense to link them so that your chart is always up to date with any changes in the data. The correct sizing takes a bit of tweaking. I only skimmed Jon's examples but I saw one where you can input scaling factors. You might want to do that at first and check how different factors look. And once you get it about right, then hardcode in the scaling factors you found optimal.
 
Upvote 0
Thanks everyone. I've visited Peltier's site many times, never noticed this section either, looks very comprehensive. It'll take me a bit to decipher and try it out. I may be back with more quesions.

Rick
 
Upvote 0

Forum statistics

Threads
1,214,832
Messages
6,121,843
Members
449,051
Latest member
excelquestion515

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