Excel to Powerpoint Office 03 with VBA

Tino1207

New Member
Joined
Oct 4, 2012
Messages
3
Hi I'm trying to develop a VBA macro which from an Excel workbook will automatically open up powerpoint and paste onto identified slides various graphs and commentary boxes.

I've searched a lot of the web and have found various bits of code, but dont seem to be able to get them to work...

Ideally im first looking to find some code which identifies opening and creating a powerpoint.

Then some seperate code which allows for the copying from excel over into powerpoint....

any help much appreciated.
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Thanks.

I've seen code like this before, but seem to keep having the same problem.

Sub ExcelToNewPowerPoint()
Dim PPApp As PowerPoint.Application
Dim PPPres As PowerPoint.Presentation
Dim PPSlide As PowerPoint.Slide

At the stage highlighted red I get the message

"Compile Error:

User-defined type not defined"

I don't really understand what this means / have I done something wrong?
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,279
Members
452,630
Latest member
OdubiYouth

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top