VBA Paste Special: Keep Source formatting (K)

help_for_excel

Board Regular
Joined
Feb 24, 2012
Messages
72
Hi,

I am controlling 2 power-point files from excel VBA. Basically I want to copy and paste slides from one powerpoint file to another. but while pasting I want to use paste as Keep Source formatting (K)

my current code is:
For Each pptslide In pptpres.Slides
pptpres.Slides(x).Copy
pptpres2.Slides.Paste



can any one help, by replacing simple paste with Keep Source formatting (K) pasting.

thanks in advance.....help
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
It doesn't work.

It gives error: Method or data member not found.
Just wanted to clarify that I am using Excel VBA to copy paste from one power-point file to another power-point file.


please help....thanks in advance
 
Upvote 0
sorry . this is an excel newsgroup and I thought it is copying from one excel sheet to another sheet. I am not familiar with vba for powerpoint.l
 
Upvote 0

Forum statistics

Threads
1,214,846
Messages
6,121,905
Members
449,054
Latest member
luca142

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