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

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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