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

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

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 :)
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,152,251
Messages
5,769,033
Members
425,511
Latest member
jpemberton

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