OfficeTips Home || VBA Section || General Section || Download Section || Privacy Policy |
Paste Excel chart as pictures in PowerPoint (Paste Special) |
|
PowerPoint object model does not include a Paste Special method to import Excel charts as pictures. However we can create one of our own using the CopyPicture method available in Excel. Thanks to the late Brian Reilly, PowerPoint MVP for pointing this out to me. ' -------------------------------------------------------------------------------- Sub XlChartPasteSpecial()
|
|
It is known the the Export method can be used to export slides as graphics. However it is little known that the Export method can also be used to export a slide as a presentation. Given below is the code to export each slide as a separate presentation. Add/Modify stuff as required. Be sure to add some error handling. You might notice the code block A and may be interested to understand it's relevance within the export routine. When the slide is exported as a presentation, PowerPoint by default embeds the true type fonts used in that slide. This will cause an increase in file size as much as 12 MB for a single presentation if Unicode fonts are present. Hence in Block A I reopen the export file and save it again with the embed font property set to FALSE. It may be removed if you want to retain the embedded font state. Note: If the slide has Unicode
fonts, it could take a while in exporting the slide. It would be prudent
to warn the user of the delay before exporting the slide. '
-------------------------------------------------------------------------------- Option Explicit
'Control individual slides export
|
Copyright 1999-2018 (c) Shyam Pillai. All rights reserved.