scottscott
Programmer
I would like to replicate the effect of manually copying a range in Excel and pasting it into Powerpoint in Office 2007 as a Table that I could edit. I can't seem to replicate this behavior through VBA.
I've looked though the forums and found a bunch of solutions that don't do exactly what I need. I don't want to copypicture the range as an image - I don't want to link the data though OLE objects - I'd prefer not to dynamically recreate the table by looping through all the cells in the range and getting the values.
The code that I thought would work is below but it just pastes an image rather than a editable table.
Range("K30:AD40").Copy
Set pptSlide = pptPres.Slides.Add(index:=pptPres.Slides.count + 1, Layout:=ppLayoutText)
pptSlide.Shapes.PasteSpecial ppPasteHTML, Link:=msoFalse
I've looked though the forums and found a bunch of solutions that don't do exactly what I need. I don't want to copypicture the range as an image - I don't want to link the data though OLE objects - I'd prefer not to dynamically recreate the table by looping through all the cells in the range and getting the values.
The code that I thought would work is below but it just pastes an image rather than a editable table.
Range("K30:AD40").Copy
Set pptSlide = pptPres.Slides.Add(index:=pptPres.Slides.count + 1, Layout:=ppLayoutText)
pptSlide.Shapes.PasteSpecial ppPasteHTML, Link:=msoFalse