Excel export to Powerpoint VBA code

bahllr

Board Regular
Joined
May 7, 2009
Messages
62
I have a number of charts that I would like to copy and paste into a powerpoint presentation. In order to do this, I need to know how to advance the powerpoint slides with each new copy/paste action.

I currently have code that exports the charts to excel after opening the right powerpoint file. Unfortunately, I can't figure out how to increment/advance the powerpoint slides.

Does anyone know how I can do this? If so, the generic code to advance slides and paste something to it would help me TREMENDOUSLY! :)

Thanks,

Ben
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Use the following code:

Code:
Application.ActivePresentation.Slides(1).Select

Where:

- Application is the powerpoint application
- 1 is Slide number 1, etc.

and something like the following for the pasting:

Code:
Application.ActivePresentation.Slides(1).Shapes.Paste

Take care,

Owen
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,945
Messages
6,122,395
Members
449,081
Latest member
JAMES KECULAH

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