Macro that copies charts from a worksheet in excel to different slides in Power Point

i have a number of charts on a worksheet, i want to create a macro that copies each of the charts into a separate slide in powerpoint. Thank you!
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

There is example tutorial to let you to paste the active excel chart into the Active PowerPoint Slide at

Hope understand your question completely.If not , please pt it out
This would be the basic code (Late bound) You may need to improve it to suit your needs.

If the charts are not directly on the sheets but have been moved to chart sheets the code would be different.

Sub pptpaster()
Const ppLayoutTitleOnly = 11
Dim i As Integer
'does not require reference to PowerPoint
Dim pptapp As Object
Dim pptPres As Object
Dim pptsld As Object
Dim s As Integer
Dim ocht As Object
Set pptapp = CreateObject("PowerPoint.Application")
pptapp.Visible = True
Set pptPres = pptapp.Presentations.Add
For s = 1 To ActiveWorkbook.Sheets.Count
For i = 1 To Sheets(s).ChartObjects.Count
Set pptsld = pptPres.Slides.Add(pptPres.Slides.Count + 1, ppLayoutTitleOnly)
Set ocht = pptsld.Shapes.Paste(1)
ocht.Left = 100
ocht.Top = 200
End Sub

Open in new window


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.