A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
This code works great!! I was wondering if there was a way to paste as a link? My attempts have been in vain thus far.
PPSlide.Shapes.PasteSpecial(Link:=True).Select
Hi,
To paste a linked picture that will NOT be editable as a chart within PowerPoint, but will be updated when the chart is changed in your ALREADY SAVED Excel file, you can use:
Sub PastingLinkedPictures()
Dim shp As Shape
Dim sld As Slide
Set sld = ActiveWindow.View.Slide
Set shp = sld.Shapes(1) 'this would be whatever placeholder you want the chart to appear
ActiveWindow.View.PasteSpecial DataType:=ppPasteMetafilePicture, Link:=msoTrue
ActiveWindow.Selection.Cut
shp.Select
ActiveWindow.View.Paste
End Sub
The extra lines of code are there to move the pasted linked picture into a specific placeholder.
If you want to paste as a linked chart, I think you just need to paste (ActiveWindow.View.Paste).
Hope that helps.
Cheers
Rich