Hi,
I am trying to get a macro to work that takes a chart from excel and pastes it as a pictuer to powerpoint. It works when I run it on a pc in excel 2007 but if I try it on a mac in excel 2011 I get an object undefined error or it pastes it as a chart. Is there anyway to get this to work in excel 2011?
here is a piece of the code
For Each cht In ActiveSheet.ChartObjects
cht.Select
ActiveChart.CopyPicture
activeSlide.Shapes.PasteSpecial(DataType:=ppPasteMetafilePicture).Select
'Adjust the positioning of the Chart on Powerpoint Slide
newPowerPoint.ActiveWindow.Selection.ShapeRange.Left = 25
newPowerPoint.ActiveWindow.Selection.ShapeRange.Top = 125
activeSlide.Shapes(3).Width = 260
activeSlide.Shapes(3).Height = 200
I am trying to get a macro to work that takes a chart from excel and pastes it as a pictuer to powerpoint. It works when I run it on a pc in excel 2007 but if I try it on a mac in excel 2011 I get an object undefined error or it pastes it as a chart. Is there anyway to get this to work in excel 2011?
here is a piece of the code
For Each cht In ActiveSheet.ChartObjects
cht.Select
ActiveChart.CopyPicture
activeSlide.Shapes.PasteSpecial(DataType:=ppPasteMetafilePicture).Select
'Adjust the positioning of the Chart on Powerpoint Slide
newPowerPoint.ActiveWindow.Selection.ShapeRange.Left = 25
newPowerPoint.ActiveWindow.Selection.ShapeRange.Top = 125
activeSlide.Shapes(3).Width = 260
activeSlide.Shapes(3).Height = 200