Paste values into PowePoint

Forestq

Active Member
Joined
May 9, 2010
Messages
482
Hi,

I tried to copy values to PPT but I got error like:
Run-time error '-2147188160 (80048240)':
Shapes (unknown member): Invalid request. Clipboard is empty or contains data which may not be pased here

my code:
Code:
Dim pp_App As PowerPoint.Application
Dim pp_Prest As PowerPoint.Presentation
Dim pp_Slide As PowerPoint.Slide

pp_App.Visible = msoTrue
pp_App.Activate

Set pp_Prest = pp_App.Presentations.Add

Set pp_Slide = pp_Prest.Slides.Add(1, ppLayoutTitle)
pp_Slide.Shapes(1).TextFrame.TextRange = "Dashboard ETC"

Set pp_Slide = pp_Prest.Slides.Add(2, ppLayoutBlank)
pp_Slide.Select

Sheet3.Range("A2").CurrentRegion.Copy
pp_Slide.Shapes.Paste.Select

Any suggiestion what can be wrong are welocome...
working ony when I make like this:
Code:
pp_slide.Shapes.PasteSpecial ppPasteOLEObject
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"

Forum statistics

Threads
1,214,979
Messages
6,122,551
Members
449,088
Latest member
davidcom

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