PasteSpecial - Keep Source Format, but do not embed

MrLookout9

New Member
Joined
Jun 25, 2011
Messages
27
Hello and thank you for your expertise.

I am creating a macro that moves charts/ data from Excel to Powerpoint. I have been given the feedback that the created PowerPoint is too large. When I paste excel data into powerpoint, it is embedding the entire spreadsheet.

If I (outside of vba, just manually) copy cells A1:C3 and go to PowerPoint and click PasteSpecial, Keep Source Formatting, it works pefectly. The data is brought in, is editable, and nothing is embedded.

*Note: A picture (ppPastePNG) will not work, as the PP must be editable.

Sheets("Sheet1").Select
Sheets("Sheet1").Range(Cells(1, 1), Cells(3, 3)).Select
Selection.Copy
PPSlide1.Shapes.PasteSpecial DataType:=ppPasteOLEObject, Link:=msoCTrue


Link - msoCTrue embeds the data. msoFalse creates a non-editable picture.
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Wow, this is a first....I've come here 25 times and have gotten 25 fantastic answers. Who knew a Copy/Paste question would be the undoing :)
 
Upvote 0

Forum statistics

Threads
1,216,075
Messages
6,128,665
Members
449,462
Latest member
Chislobog

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