A family of Microsoft presentation graphics products that offer tools for creating presentations and adding graphic effects like multimedia objects and special effects with text.
The following vba [powerpoint]code is for copy all the excel chart as a picture in activeworsheet and paste in powerpoint with selected shape position then delect the shape.
Problem: i don want copy chart in active worksheet. i need vba code for copy selected chart only as a piccture
kindly help me someone
Sub Chart_1()
Dim PPApp As PowerPoint.Application
Dim PPPres As PowerPoint.Presentation
Dim PPSlide As PowerPoint.Slide
Dim L, T As Double
Dim i, x As Integer
Set xlapp = GetObject(, "Excel.Application")
Set PPApp = GetObject(, "Powerpoint.Application")
Set PPPres = PPApp.ActivePresentation
Set PPSlide = PPPres.Slides(PPApp.ActiveWindow.Selection.SlideRange.SlideIndex)
x = PPApp.ActiveWindow.Selection.ShapeRange.Count
For i = 1 To x
xlapp.activesheet.Chartobjects(i).CopyPicture
L = PPApp.ActiveWindow.Selection.ShapeRange(1).Left
T = PPApp.ActiveWindow.Selection.ShapeRange(1).Top
With PPSlide.Shapes.Paste
.Left = L
.Top = T
End With
PPApp.ActiveWindow.Selection.ShapeRange(1).Delete
Next
Set PPSlide = Nothing
Set PPPres = Nothing
Set PPApp = Nothing
End Sub