How to copy cell range as table from Excel to PowerPoint – VBA

calendar_today Asked Oct 1, 2010
thumb_up 7 upvotes
history Updated April 16, 2026

Question posted 2010 · +4 upvotes

I can’t find any way to do this. What I have now is that it copy the range as an image:

Dim XLApp As Excel.Application 
Dim PPSlide As Slide 

Set XLApp = GetObject(, "Excel.Application") 
XLApp.Range("A1:B17").Select 
XLApp.Selection.CopyPicture Appearance:=xlScreen, Format:=xlPicture
PPSlide.Shapes.Paste.Select

this works like a charm, but is it possible to get it to copy the range as a table instead of picture?

Accepted answer +7 upvotes

This can be done simply with

Dim XLApp As Excel.Application
Dim PPSlide As Slide

Set XLApp = GetObject(, "Excel.Application")
XLApp.Range("A1:B17").Copy
PPSlide.Shapes.PasteSpecial DataType:=ppPasteOLEObject, Link:=msoFalse

VBA Core objects referenced (5)

Top vba Q&A (6)

+7 upvotes ranks this answer #56 out of 81 vba solutions on this site .
vba