Copy Range from excel and paste range in Powerpoint Late Binding

Brander

New Member
Joined
Mar 27, 2014
Messages
2
Hello

I'm jusing late binding to copy from excel to powerpoint.
I can easily copy and paste as shape ... but I'd like to paste as range, it's text and numbers I have. If I paste as shape the background are pasted as well, I do not like that ...

Below is the code I use ...
It's the line "PPPres.Slides(1).Shapes.Paste" I'd like to change ...

Thanks


Sub Latebinding()

Dim otherApp As Object
Dim otherDoc As Object
Dim otherSpecificObjects As Object

Set otherApp = CreateObject("Powerpoint.Application")
Set otherApp = GetObject(, "Powerpoint.Application")

Dim PPApp As Object
Dim PPPres As Object
Dim PPSlide As Object
Dim rng As Excel.Range

Set PPApp = CreateObject("Powerpoint.Application")
Set PPPres = PPApp.Presentations.Open("P:\sb\test.ppt")
Set rng = ThisWorkbook.ActiveSheet.Range("A2:g45")

rng.Copy
PPPres.Slides(1).Shapes.Paste

Set PPSlide = Nothing
Set PPPres = Nothing
Set PPApp = Nothing
End Sub
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

Forum statistics

Threads
1,214,962
Messages
6,122,482
Members
449,088
Latest member
Melvetica

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