Wednesday, November 18, 2009

PowerPoint: Update Links to Excel charts and ranges

'*************************************************************
'Updating all links of OLE objects embedded in PowerPoint
'This macro is intended to Update charts/Ranges that are
'copy-pasted from Excel into PowerPoint using "Paste Link"
[option of Paste Special menu item
'The macro updates all links in the PowerPoint
'*************************************************************
Sub Update_Links()
Dim osld As Slide
Dim oshp As Shape
For Each osld In ActivePresentation.Slides
For Each oshp In osld.Shapes
If oshp.Type = msoLinkedOLEObject Then oshp.LinkFormat.Update
Next oshp
Next osld
End Sub

1 comment:

  1. You are right that we always need a method to to Update charts/Ranges that are copied from Excel into PowerPoint .The macro you provided solved the problem.Thanks.
    digital signature Microsoft

    ReplyDelete