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

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.

MrLookout9

New Member
Joined
Jun 25, 2011
Messages
27
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 :)
 

Forum statistics

Threads
1,186,155
Messages
5,956,250
Members
438,243
Latest member
FXA

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
Top