Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Have you tried:
ActiveSheet.Shapes("myGraph").CopyPicture ? Tim "Daemen" wrote in message ... The code below works in office 2007 for me: don't forget to DIM PP and PPpres as object. Set PP = GetObject(, "PowerPoint.Application") PP.Visible = msoCTrue Set PPpres = PP.Presentations("Template.pptx") ActiveSheet.Shapes("myGraph").Copy PPpres.Slides(5).Shapes.PasteSpecial (ppPasteEnhancedMetafile) This works like a charm... almost.... My problem is that the graph loses all preselected colours. And the colours had meaning. If I do this operation by hand: copy the graph, go to powerpoint and select paste-special Picture("Enhanced Metafile"), then it works perfectly and all colours are retained. How do i get the macro to do this? I hope I have helped you. Now allow me to hijack this thread? ;-) "Yurble" wrote: Try to remove follow: 1. ' remove title (or it will be redundant) .HasTitle = False 2. If Len(sTitle) 0 Then .HasTitle = True .ChartTitle.Text = sTitle End If And remember to Set a VBE reference to Microsoft PowerPoint Object Library |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Cannot copy Excel 2007 Chart and Paste as Bitmap into Powerpoint 2 | Charts and Charting in Excel | |||
Copy/Paste custom Excel chart to Word/PowerPoint | Excel Discussion (Misc queries) | |||
Can I paste a chart from Excel into a powerpoint slide "Placeholde | Charts and Charting in Excel | |||
Distorted Excel chart fonts when copy/paste to Word or Powerpoint | Charts and Charting in Excel | |||
VBA: open PowerPoint and paste a chart | Excel Programming |